Skip to content

Add meta refresh redirects to all article and volume pages#11

Open
TedTimbrell wants to merge 4 commits intopragmaticpapers:mainfrom
TedTimbrell:add-meta-refresh-redirects
Open

Add meta refresh redirects to all article and volume pages#11
TedTimbrell wants to merge 4 commits intopragmaticpapers:mainfrom
TedTimbrell:add-meta-refresh-redirects

Conversation

@TedTimbrell
Copy link
Copy Markdown

@TedTimbrell TedTimbrell commented Apr 1, 2026

Summary

  • Adds <meta http-equiv="refresh"> and <link rel="canonical"> tags to 124 pages (17 volume indexes + 101 articles), redirecting visitors to their corresponding pragmaticpapers.com URLs
  • Matches the existing pattern on the homepage (added in Add Google site verification 5s redirect also link to new site #10)
  • 11 articles missing from prod (1 from Vol II, all of Vol XV, 2 from Vol XVI) were skipped — no redirect since there's no destination (unpublished articles)

Test plan

  • Verify a volume page (e.g. /02/) redirects to pragmaticpapers.com/volumes/2
  • Verify an article page (e.g. /02/doge-and-elon/) redirects to pragmaticpapers.com/articles/doge-and-elon
  • Confirm pages without prod matches (e.g. /15/sleazebag/) have no redirect tags

🤖 Generated with Claude Code

TedTimbrell and others added 2 commits March 31, 2026 23:04
Adds <meta http-equiv="refresh"> (5s delay) and <link rel="canonical"> tags
to 124 pages (17 volume indexes + 101 articles) pointing to their
pragmaticpapers.com equivalents, matching the pattern already on the homepage.
Pages missing from prod (11 articles) were skipped.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Unlike the homepage which has a "We've Moved!" popup, these pages have
no reason to delay. A 0s refresh is also treated more like a 301 by
search engines, which is better for SEO.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@tadjh tadjh left a comment

Choose a reason for hiding this comment

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

LGTM

- github-to-prod-mapping.json: maps GitHub Pages paths to pragmaticpapers.com URLs
- scripts/apply-prod-tags.js: reusable script to inject tags into matched pages
  Supports modes (redirect, canonical, or all) with --dry-run option.
  New tag types can be added to the MODES object for future use.
Supports removing tags per mode or all at once:
  node apply-prod-tags.js redirect --remove
  node apply-prod-tags.js all --remove --dry-run
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