Hi,
To handle different language/channel we have a dropdown with links to “/se,/en”. The problem is that the user is redirected to the startpage and is not staying on the current page.
Is there a good way of solving this?
Litium version: 7.2
Hi,
To handle different language/channel we have a dropdown with links to “/se,/en”. The problem is that the user is redirected to the startpage and is not staying on the current page.
Is there a good way of solving this?
Litium version: 7.2
You will need to get the _url which belongs to that language, depending on if you are on a product-page or a landing-page. Are you redirecting from client-side today?
Yes, today it’s just regular a hrefs to /sv/ and /en/
You’d have to resolve the correct link for each channel and pass it to the front-end.
Keep in mind that the PageModel for categories and product pages will always be the start page, but you can work around that by for example injecting CategoryModel and ProductModel.
Here are some perhaps helpful threads:
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.