[Core] fixes language-switcher when using a basepath