Add meta refresh redirects to all article and volume pages#11
Open
TedTimbrell wants to merge 4 commits intopragmaticpapers:mainfrom
Open
Add meta refresh redirects to all article and volume pages#11TedTimbrell wants to merge 4 commits intopragmaticpapers:mainfrom
TedTimbrell wants to merge 4 commits intopragmaticpapers:mainfrom
Conversation
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>
- 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
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
<meta http-equiv="refresh">and<link rel="canonical">tags to 124 pages (17 volume indexes + 101 articles), redirecting visitors to their corresponding pragmaticpapers.com URLsTest plan
/02/) redirects topragmaticpapers.com/volumes/2/02/doge-and-elon/) redirects topragmaticpapers.com/articles/doge-and-elon/15/sleazebag/) have no redirect tags🤖 Generated with Claude Code