feat: landing pages + URL redirects + CMS root-level routing - #977
Merged
Conversation
Three interlocking bodies of work. URL-redirect subsystem - New url_redirect table (base) with write-time chain collapse; a notFound-gated middleware 302s an old path to the new one. - Inline capture in the product/category update services: url_key renames, category reassignment/unassignment (incl. whole variant groups), and category rename AND reparent. - Unified, unit-tested path algebra (pathRemap: buildEntityPath / remapPath / planSubtreeRedirects); boundary-anchored subscriber cascade (fixes the /shoe-sale sweep and /cat/cat-toy mangle); set-based recordRedirectsBatch. - Delete-cascade cleanup: purge a category subtree's aliases and capture the nested->root move of every product it uncategorises. CMS root-level routing - CMS pages are served at root-level /<url_key> via url_rewrite; the page-builder for CMS pages reverts to route-level. Landing pages (promotion module) - New first-class entity: root-level URL, page-builder-only body via entity_urn, admin grid + CRUD + duplicate, status + publish schedule; wins URL collisions. - Page-builder entity-scope registry; draft/scheduled pages preview in the editor via a valid changeset token (possession-based trust). SEO / UI - LinkPicker "Landing page" tab + a promotion:landing_page link loader. - Live SearchSnippetPreview (SERP snippet) on the landing-page and CMS-page SEO forms; dropped meta_keywords from landing pages; two-column landing edit layout with status + schedule in the sidebar. Verified: tsc 0 errors; jest 82 suites / 790 tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Three interlocking bodies of work.
URL-redirect subsystem
CMS root-level routing
Landing pages (promotion module)
SEO / UI
Verified: tsc 0 errors; jest 82 suites / 790 tests green.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information