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

Set fixed urls relative to language #625

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Conversation

lianmakesthings
Copy link
Collaborator

@lianmakesthings lianmakesthings commented Apr 17, 2024

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.

Copy link

Action Required

You are adding or updating English content so please take the following actions for other languages.

  • If you update content, that has corresponding files in other languages, include a note suggesting that users check the English page for the most recent updates in those translated pages.
  • If you add new content under website/content/en there is nothing you need to do.

Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for tag-app-delivery ready!

Name Link
🔨 Latest commit 0b79fda
🔍 Latest deploy log https://app.netlify.com/sites/tag-app-delivery/deploys/661fdad088c76200080dfbcb
😎 Deploy Preview https://deploy-preview-625--tag-app-delivery.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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 <hi@lianmakesthings.dev>
Signed-off-by: lianmakesthings <hi@lianmakesthings.dev>
@lianmakesthings lianmakesthings changed the title Fix whitepaper backlinks Set fixed urls relative to language Apr 17, 2024
Copy link
Member

@roberthstrand roberthstrand left a 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.

Copy link
Collaborator

@thschue thschue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Announcing the Platform Engineering Maturity Model / Website Link not working
3 participants