[Auth,Core] Fixes: Language detection when base path is present does not work properly