Repository navigation
fix(articles): 301 junk-tailed article URLs and 404 unknown slugs - #253
Merged
Merged
Conversation
Crawlers looped on article URLs with an encoded tail that grew by one
encoding per hop (slug%2529, slug%252529, ...). Unknown slugs rendered
as 200 pages because getCurrentArticle returns {} on a miss, so every
variant became an ISR file and linked to the next one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @manager's task in 17s —— View job Review of PR #253Verdict: looks good, no blocking issues.
Conventions: no App Router, styling, or UX Core data changes. I didn't run the tests. The PR description says Existing junk-tail ISR files already on disk will clear as they revalidate to 404. |
Contributor
Author
|
Both points checked:
|
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.
Crawlers looped on article URLs whose encoded tail grew by one level per hop (
slug%2529,slug%252529, ...). An unknown slug rendered as a 200 page becausegetCurrentArticlereturns{}on a miss, so every variant became an ISR file on disk and its language toggle linked to the next variant.middleware.ts: an/articles/<slug>path with characters outside[A-Za-z0-9_-]gets a 301 to the clean slug prefix.src/pages/articles/[page].tsx: an unknown slug returnsnotFound(revalidate 10).Checked: middleware run with
NextRequeston junk and real paths (junk -> 301 clean slug, real slugs pass),tsc --noEmitclean.Authorized by Wolf on 2026-10-15.
🤖 Generated with Claude Code