How to remove default language slug in Lanugage Chooser links?
-
I use url Pre-Path Mode with setting “Hide URL language information for default language”.
I have two languages on my website with slugs ‘ru’ and ‘ua’. ‘ru’ is set to default.
So that means that my ‘ru’ pages have url https://mysite.com/slug/ and my ‘ua’ pages have url https://mysite.com/ua/slug/
I disabled “language client cookie “qtrans_front_language”” because I’m not sure that it’s good for seo all these 302 redirects.
But the language chooser in the header of my each page (which is displayed by qtranxf_generateLanguageSelectCode function) shows links with ‘ru’ slug:
https://mysite.com/ru/slug/
https://mysite.com/ua/slug/And when I click to the first one, browser 302 redirects me to https://mysite.com/slug/. I think it’s not good for SEO to have all these ‘ru’ links with 302 redirect.
So is there a way I could force qtranxf_generateLanguageSelectCode to remove default language slug (‘ru’ in my case)?
- The topic ‘How to remove default language slug in Lanugage Chooser links?’ is closed to new replies.