CMS Development

giozua
Contributor | Platinum Partner
Contributor | Platinum Partner

hs_path with added hsLang

Hello everyone,
 I have an unpleasant problem related to dynamic pages that contain information taken from a HubDB table. Unfortunately from a listing page and clicking on the product to see the dynamic product page, hsLang=en is added to the url at the end which, for SEO issues is a problem because it differs from the clean canonical url
Here is an example of a url
https://www.autecsafety.com/product/t4b-t4c?hsLang=en
Has anyone had the same problem and been able to solve it? Thank you

Giovanni
 

0 Upvotes
2 Replies 2
giozua
Contributor | Platinum Partner
Contributor | Platinum Partner

hs_path with added hsLang

Hi,
in the settings the prefix in slug is not in use and unfortunately the other solution does not work by completely ignoring the cut

giozua_0-1744203317132.png

giozua_1-1744203336877.png

 

 

0 Upvotes
Anton
Thought Leader | Partner
Thought Leader | Partner

hs_path with added hsLang

Hey @giozua

you can disable this in Settings -> Content -> Domains & URLs -> Language settings

Bildschirmfoto 2025-04-09 um 14.02.05.png

 

But be careful. This can cause a lot of problems with existing pages. 

Another trick you can try is adding the cut-filter to the dynamic template where you define the URL.

Like 

{{ dynamic_pages.dynamic-slug|cut('?hsLang=en') }}

 

best, 

Anton

Anton Bujanowski Signature
0 Upvotes