Hugo-coder: Switching language jumps to index page

Created on 2 Apr 2020  路  5Comments  路  Source: luizdepra/hugo-coder

Description:
When the language is changed by clicking in the menu, the page jumps to the index page for that language, not the translation for the currently viewed content.

Steps to reproduce:
Launch the example site inside the template, click on a page, and then click on the other language.

I have this problem with my own site of course, but it also happens with the example site from the template. Maybe I am just a noob?

Most helpful comment

done: see pull request #294

All 5 comments

I noticed the same issue and fixed it locally as it might be desired behaviour i.e. not all pages might be available in all languages. I changed the header template to only list the languages for which a localised version for the current page exists. I can propose a patch if you are interested. of course this will affect the current behaviour which is a problem if it is not considered to be a bug.

Please propose patch

done: see pull request #294

Thank you so much!!

Done. Closing. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxdrohde picture maxdrohde  路  3Comments

M-Brody picture M-Brody  路  6Comments

luizdepra picture luizdepra  路  7Comments

jtr109 picture jtr109  路  5Comments

mauricioabreu picture mauricioabreu  路  5Comments