I tried your code with Alloy, works w/o any issues.
Episerver 9.8.0, enabled English and Swedish. Replacement and fallback languages are not enabled.
Which version of epi are you using?
Thanks for testing it, Dejan! I'll have to dwell deeper into that site to figure out what's causing it. Probably some sort of edge case scenario.
Edit: It appears this only happens when a fallback language is enabled, even though the requested language version is published.
I'm doing the following to get a page with a known URL segment in a specific language (Swedish):
I do get a page back, but I always get the English language version (language fallback isn't enabled).
Any idea on what I'm missing here? :)