Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make navbar link to translated version if it exists #44

Open
mxmehl opened this issue May 5, 2022 · 0 comments
Open

Make navbar link to translated version if it exists #44

mxmehl opened this issue May 5, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@mxmehl
Copy link
Member

mxmehl commented May 5, 2022

Currently, all links in the navbar link to the English version, even if viewing a translation and if there was a translation for that page the link leads to.

Unfortunately, the customised relref shortcode does not work here as it would have to be a partial, and I cannot get it to work.

Alternatively, we could just link to it and depend on the .htaccess rule to link back to the EN page if it's not present. It would work immediately in the deployed and Docker development version, but in local previews (with hugo server) it would not work.

@mxmehl mxmehl added bug Something isn't working help wanted Extra attention is needed labels May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant