Implement URL manifest system with permanent redirects#166
Merged
just-be-dev merged 3 commits intomainfrom Jan 22, 2026
Merged
Conversation
- Replace code-based routes with slug-based canonical URLs - Add URL manifest that maps codes to content paths for permanent redirects - Implement middleware to handle short codes, legacy URLs, and custom slugs - Support custom slug aliases via frontmatter (e.g., /ccpm → /projects/ccpm) - Update list pages to link to canonical URLs - Add documentation in CLAUDE.md Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
just-be-dev | b84307c | Commit Preview URL Branch Preview URL |
Jan 22 2026, 05:31 AM |
Replace complex pattern matching with simpler code-segment detection. Check if first or second URL segment is a code, then redirect to canonical URL from manifest. Handles all redirect cases uniformly. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Update tests to use the new 2-parameter signature (collection, slug) instead of the old 3-parameter signature (collection, code, slug). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
Overall just simplifies the URLs while maintaining backwards compatibility.
Summary
This PR implements a URL manifest system to make content URLs permanent. It replaces code-based routes with clean slug-based canonical URLs, while maintaining backwards compatibility through redirects. All content is accessible via short codes, legacy URLs, and custom slug aliases defined in frontmatter.
Key Changes
[code]/[slug]) with slug-only routes ([slug])/ccpm→/projects/ccpm)Test Plan
/projects/devtools-fm)/p1e73→/projects/devtools-fm)/ccpm→/projects/ccpm)🤖 Generated with Claude Code