Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Language Switch not working (Configurable Header)

Avatar

Level 2

When the website was created, we have set up the header to allow language switch (auto - with deeplink functionality), so when a person needed to change the website language it would be led to the same page but in the new language. However, all of a sudden, every time we perform a language switch, the person is taken to the homepage.

What is the best way to connect two same pages but with different languages on AEM?

1 Accepted Solution

Avatar

Correct answer by
Level 10

I'd love to help you but I think we really need more information first. How does this "deeplinking" work? Basically all you would need to do is take the current URL and switch the language part of the content path (with a check to make sure the resource exist and create a fallback plan, ideally). Can you provide more information about the header component? Java and/HTL code for example?

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

I'd love to help you but I think we really need more information first. How does this "deeplinking" work? Basically all you would need to do is take the current URL and switch the language part of the content path (with a check to make sure the resource exist and create a fallback plan, ideally). Can you provide more information about the header component? Java and/HTL code for example?