-
Notifications
You must be signed in to change notification settings - Fork 213
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
Set fixed urls relative to language #625
Conversation
Action RequiredYou are adding or updating English content so please take the following actions for other languages.
|
✅ Deploy Preview for tag-app-delivery ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…faulting_to_spanish" This reverts commit 3709b3b, reversing changes made to 571f986. Signed-off-by: lianmakesthings <[email protected]>
Signed-off-by: lianmakesthings <[email protected]>
21b98c4
to
0b79fda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the deployment, and seem to be working fine. And now the URL is back to the original for English, so previous links should work again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #626
Originally, we set fixed URLs for the whitepapers.
When these were duplicated due to the new script for language support, they also copied the fix URL. That would lead to issues, like the default page being hijacked by a non-default language.
By removing the fixed URL, we solved the language issue, but broke backlinks to the whitepapers.
According to hugos docs, for multilingual support, fixed URLs need to be set relative to the languagecode.
This PR should bring back the fix URL, so it always points to the default language version (English) while the other languages will include their language code in the URL.