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

Fix redirect to use English-language version #90

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

carmenbianca
Copy link
Member

The problem: Sometimes, when Hugo generated the website, the /spec/ alias would point to the Ukrainian translation of the latest specification. Exactly how or why this happens is unclear to me, but I suspect it is because the Ukrainian Markdown file would also contain the aliases: ["/spec"] frontmatter, and the Hugo compiler would somehow toss a coin on which aliases frontmatter is authoritative.

Here, we get rid of the frontmatter method of doing aliases, and instead use a 'layout' to effectively do the same thing.

The problem: Sometimes, when Hugo generated the website, the `/spec/`
alias would point to the Ukrainian translation of the latest
specification. Exactly how or why this happens is unclear to me, but I
suspect it is because the Ukrainian Markdown file would also contain the
`aliases: ["/spec"]` frontmatter, and the Hugo compiler would somehow
toss a coin on which aliases frontmatter is authoritative.

Here, we get rid of the frontmatter method of doing aliases, and instead
use a 'layout' to effectively do the same thing.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
@carmenbianca carmenbianca merged commit e4af907 into fsfe:main Aug 23, 2024
2 checks passed
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.

1 participant