We’ve faced with an issue where story that is seemingly published for a language with underscore ("_") in the code is not returned by API when queried with “published-only” filter although it’s present when using “drafts-only” filter.
Steps to reproduce:
- Create a language with underscore in the code (e.g. nl_NL)
- Create a story that has content in default language and a one containing underscore character in the code
- Publish the story for both languages
Expected result:
/v2/cdn/stories/%story-path%?cv=%latest cv%&version=published&language=nl_NL
returns published version
Actual result:
Received 404 ["This record could not be found"]