Skip to content

Make /glossary an alias for /glossary/english + add Re-SearchTerms link#775

Open
LukasWallrich wants to merge 2 commits into
mainfrom
glossary-english-alias-and-researchterms-link
Open

Make /glossary an alias for /glossary/english + add Re-SearchTerms link#775
LukasWallrich wants to merge 2 commits into
mainfrom
glossary-english-alias-and-researchterms-link

Conversation

@LukasWallrich
Copy link
Copy Markdown
Contributor

@LukasWallrich LukasWallrich commented May 16, 2026

Summary

  • /glossary and /glossary/english were near-duplicate landing pages — the former added only a "choose your language" blurb. Collapsed them: /glossary/english/_index.md now declares aliases: [/glossary/], so visiting /glossary meta-refreshes to /glossary/english.
  • /glossary/_index.md is 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) crashes layouts/glossary/list.html (it dereferences .File.Dir and .File is nil on auto-section pages) and (b) would clobber the alias.
  • Added below the language-switcher block on the English landing page: "Also consider the Re-SearchTerms app to explore alternative definitions."

Merge note

Diffs cleanly with the open Chinese-glossary branch (#773): my edits to english/_index.md are on frontmatter + the line below the switcher buttons, separate from that branch's switcher-shortcode hunk. The _index.md stub will need a one-line conflict resolution (their switcher-shortcode change is moot once the file no longer renders).

Test plan

  • hugo servercurl /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
  • After GitHub Pages build, confirm the alias produces a static /glossary/index.html redirect

🤖 Generated with Claude Code

@LukasWallrich LukasWallrich requested a review from a team as a code owner May 16, 2026 16:42
@github-actions
Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 16, 2026

✅ Spell Check Passed

No spelling issues found when checking 2 changed file(s)! 🎉

@LukasWallrich
Copy link
Copy Markdown
Contributor Author

LukasWallrich commented May 16, 2026

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
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

@LukasWallrich LukasWallrich force-pushed the glossary-english-alias-and-researchterms-link branch from 49b4acc to 1572ba4 Compare May 17, 2026 11:42
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>
@LukasWallrich LukasWallrich force-pushed the glossary-english-alias-and-researchterms-link branch from 1572ba4 to 1ab70cb Compare May 17, 2026 11:48
Copy link
Copy Markdown
Contributor

@richarddushime richarddushime 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.

2 participants