Skip to content

Reorganize elections pages - #819

Merged
bennyvasquez merged 3 commits into
AlmaLinux:masterfrom
alexiri:elections
Jul 27, 2026
Merged

Reorganize elections pages#819
bennyvasquez merged 3 commits into
AlmaLinux:masterfrom
alexiri:elections

Conversation

@alexiri

@alexiri alexiri commented Jul 25, 2026

Copy link
Copy Markdown
Member

We're going to have a lot more elections, so probably best to move them somewhere sensible...

@bennyvasquez

bennyvasquez commented Jul 25, 2026

Copy link
Copy Markdown
Member

I’ve wanted to do this exact thing for a while, but I’m worried about all of the old links the point to these pages. The problem is that we have no way of setting up redirects through the wiki, only through Cloudflare and finding time to coordinate with. @AlmaLinux/infrastructure-sig has been hard. The number of broken links we’ll create with these specific changes is probably minimal, but it’s something that we want to keep in mind with future changes.

@alexiri can you explain a bit about how the redirects you’ve set up here work?

@alexiri

alexiri commented Jul 25, 2026

Copy link
Copy Markdown
Member Author

That magic basically creates at build time some pages in the old location that look like this:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=/foundation/elections/2025.html">
<link rel="canonical" href="/foundation/elections/2025.html">
<meta name="robots" content="noindex">
<title>Page moved</title>
</head>
<body>
<p>This page has moved to <a href="/foundation/elections/2025.html">/foundation/elections/2025.html</a>.</p>
</body>
</html>

Then the client browser gets redirected to the new page when it opens the old link.

@bennyvasquez

Copy link
Copy Markdown
Member

@alexiri Sweet! I like it. Can you add a quick documentation note about how we do redirections to the README and then I can approve and merge this?

@bennyvasquez
bennyvasquez merged commit 9156e18 into AlmaLinux:master Jul 27, 2026
1 check 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.

2 participants