Hugo

How can I switch the language of the current page

These examples are switch language by going to the translated homepage. How can I switch the current page?

Please create new topics for new questions, thanks. :smile:

I’m switching current pages on https://esolia.com such as https://esolia.com/about. The layout for that page calls a partial:

…which sets up the switcher:

I have some exception code in there to just go to the home page, if there is no translation.

That said, we need some more info to be able to help you, so please have a look at Requesting Help and provide some more details like your repo and what you’re trying? Thanks.

1 Like