Problem with lang="en"

SOLVE
rickbyrd
Participant

The footer of our website template has links to several of our top level pages.  When hovering over them there is now an additional ?hsLang=en to the end of the domain.  I know what this represents.  I have 2 concerns.  First, I do not know when this happened or how it happened.  Second, the link to our blog page shows ?hsLang=en in the domain url, where as, the other links are properly directed to only show the domain url like they are supposed.  

 

Capture.PNG

I do not know how to make these changes in the templates.  I have been instructed to not make changes to the templates.  I would like to present this to the person that can make the changes with a proper explanation.

 

Any help is appreciated.  Let me know if my explanattion does not make sense.

 

Rick

1 Accepted solution

Accepted Solutions
jennysowyrda
Solution
Community Manager

Hi @rickbyrd,

 

The text at the end of the links is related to your "enable language specific redirects" setting which can be found under settings>domains and urls>language settings. 

 

To remove the ?hsLang=en you will have to turn off the "Enable Language Specific Redirects"

 

Thank you,
Jenny

View solution in original post

8 Replies 8
jennysowyrda
Solution
Community Manager

Hi @rickbyrd,

 

The text at the end of the links is related to your "enable language specific redirects" setting which can be found under settings>domains and urls>language settings. 

 

To remove the ?hsLang=en you will have to turn off the "Enable Language Specific Redirects"

 

Thank you,
Jenny

View solution in original post

samuellavoie
Participant

Hi Jenny,

 

Beside this, what are the impacts of turning this "enable language-specific redirects" feature OFF? For a multilingual website.

thanks!

0 Upvotes
jennysowyrda
Community Manager

HI @samuellavoie,

 

Turning the feature off would remove the ability to have multiple versions of one page in different languages. The functionalities outlined here would be those impacted. 

0 Upvotes
JohnS63
Contributor

Hi @jennysowyrda, how does this work? Is it based on browser language settings or something else? 

 

Thanks!

0 Upvotes
jennysowyrda
Community Manager

Hi @JohnS63,

 

For a full explanation of how the multi language content works, I wanted to share this resource.

 

Thank you,
Jenny

0 Upvotes
SteveG
Participant

Hi @jennysowyrda 

I don't understand the purpose of ?hslang=en being added to our URLs.  We've been managing a multi-language site for several years now, and most of our pages are part of multi-language groups, as HS intended.  But if each page is set to include its own language code in URL (e.g. /fr/, /es/, etc.) then why the need for an hslang URL parameter? 

Up until recently, it was merely an annoyance and somewhat confusing that our links and URLs were changing to include ?hslang, but the links always worked as intended, and our own language picker would always switch to the proper language version of our site.

However, we recently created a new multi-language group of pages, and added links at the top of each page to the other languages.  And for the first time, it didn't work.  Even though the href attribute was "https://www.domain.com/fr/pagename", every time we clicked on it, it would add ?hslang=en and always go to the English page instead of the French page.  We couldn't figure it out, and in the end, at the suggestion of HS Support, we went into our Domain & URLs > Language Settings and unchecked "Enable Language Specific Redirects" which fixed the problem.  But are we now losing out on other benefits?

0 Upvotes
WObloza
Participant

Hello, did you solve this issue mayby? We have similar problem with one subpage- main menu on this page works correctly, but submenu and other links add ?hsLang to URL 😕

 

0 Upvotes
06723
Participant

@jennysowyrda What are the drawbacks of disabling the "Enable Language Redirects"