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

404 page breaks multi-language switcher #279

Closed
welpo opened this issue Feb 15, 2024 · 0 comments
Closed

404 page breaks multi-language switcher #279

welpo opened this issue Feb 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@welpo
Copy link
Owner

welpo commented Feb 15, 2024

Bug Report

Environment

Zola version: 0.18.0
tabi version or commit: latest

Expected Behavior

On the 404 page, the language switcher should take the user to the main page of each language.

Current Behavior

Changing the language takes the user to a broken, almost-correct URL. For example, to go to the Spanish demo site, it should lead to:

https://welpo.github.io/tabi/es/

But instead leads to:

https://welpo.github.io/tabi/es /

In short: there's an extra space after the language code.

Step to Reproduce

Visit the 404 page and change the language through the top right globe icon.

@welpo welpo added the bug Something isn't working label Feb 15, 2024
@welpo welpo closed this as completed in 90def02 Feb 15, 2024
Smtbook pushed a commit to Smtbook/zola-theme-tabi that referenced this issue Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant