Make /glossary an alias for /glossary/english + add Re-SearchTerms link#775
Open
LukasWallrich wants to merge 2 commits into
Open
Make /glossary an alias for /glossary/english + add Re-SearchTerms link#775LukasWallrich wants to merge 2 commits into
LukasWallrich wants to merge 2 commits into
Conversation
Contributor
|
👍 All image files/references (if any) are in webp format, in line with our policy. |
Contributor
✅ Spell Check PassedNo spelling issues found when checking 2 changed file(s)! 🎉 |
Contributor
Author
|
✅ Staging Deployment Status This PR has been successfully deployed to staging as part of an aggregated deployment. Deployed at: 2026-05-24 08:57:01 UTC The staging site shows the combined state of all compatible open PRs. |
49b4acc to
1572ba4
Compare
The standalone /glossary landing page duplicated the English glossary intro with only a language-chooser blurb on top. Collapse the two: add a Hugo alias on /glossary/english so /glossary redirects there, and suppress rendering of /glossary/_index.md (deleting it would let Hugo auto-generate a section list at /glossary/, which crashes layouts/glossary/list.html on a nil .File and would also overwrite the alias). Also surface Re-SearchTerms on the landing page, below the language buttons. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1572ba4 to
1ab70cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/glossaryand/glossary/englishwere near-duplicate landing pages — the former added only a "choose your language" blurb. Collapsed them:/glossary/english/_index.mdnow declaresaliases: [/glossary/], so visiting/glossarymeta-refreshes to/glossary/english./glossary/_index.mdis reduced to a frontmatter stub with_build.render: never/list: never. Outright deleting the file lets Hugo auto-generate a section list at/glossary/, which (a) crasheslayouts/glossary/list.html(it dereferences.File.Dirand.Fileis nil on auto-section pages) and (b) would clobber the alias.Merge note
Diffs cleanly with the open Chinese-glossary branch (#773): my edits to
english/_index.mdare on frontmatter + the line below the switcher buttons, separate from that branch's switcher-shortcode hunk. The_index.mdstub will need a one-line conflict resolution (their switcher-shortcode change is moot once the file no longer renders).Test plan
hugo server→curl /glossary/returns meta-refresh redirect to/glossary/english//glossary/english/renders the Re-SearchTerms sentence directly under the language buttons/re-searchterms/continues to be handled by the existing 404 JS redirect to/apps/re-searchterms.html/glossary/index.htmlredirect🤖 Generated with Claude Code