Hi, I am using Vorto Package for multilanguage website. I have language switcher which redirects on home page on every switch. Isn't there any ready code which changes language on same page ? I mean without splitting Urls and so on, i need an easy way.
Switch language on same page.
Hi, I am using Vorto Package for multilanguage website. I have language switcher which redirects on home page on every switch. Isn't there any ready code which changes language on same page ? I mean without splitting Urls and so on, i need an easy way.
How do you switch the language? By Url?
Hi Frans,
First I have added
Domains
inCulture and Hostnames
. For switching languages i use this code :Of course it redirects at home page. I need logic for redirecting on same page.
What you could to is the following:
I don't know if the language prefix is present on Model.Content.Url. If you've set /en and /de on the hostname than I expect it not to be.
Yes language prefix is presented on
Model.Content.Url
:(is working on a reply...