Canonicalize storefront URL to the clean vanity slug - #600
Merged
Conversation
The storefront resolves by UUID or slug, so it can be reached via /project/<uuid> (old dashboard links, bookmarks, shared UUID links) as well as the pretty /<slug> rewrite. Arriving via the UUID left the ugly /project/<uuid> in the address bar instead of dum.club/<slug>. Once the project loads and its slug is known, replaceState snaps the bar to /<slug> - no reload, no refetch, no Next navigation, so params.id and all in-page state are untouched - preserving query string + hash. No-ops when there is no slug or we are already on the clean path. Human-copy guard passes (126 files). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AX5jScmWgKK5yfoKZgamhD
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Visual QA · ✅ passTested against: Full report + screenshots: Action run → Artifacts → |
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.
The storefront resolves by UUID or slug, so it can be reached via /project/ (old dashboard links, bookmarks, shared UUID links) as well as the pretty / rewrite. Arriving via the UUID left the ugly /project/ in the address bar instead of dum.club/. Once the project loads and its slug is known, replaceState snaps the bar to / - no reload, no refetch, no Next navigation, so params.id and all in-page state are untouched - preserving query string + hash. No-ops when there is no slug or we are already on the clean path.
Human-copy guard passes (126 files).
Claude-Session: https://claude.ai/code/session_01AX5jScmWgKK5yfoKZgamhD