feat(routing): give products and categories their own addresses #50
No reviewers
Labels
No labels
Area/API
Area/CI
Area/Frontend
Area/Katalog
Area/SEO
Area/Warenkorb
Kind/Bug
Kind/Chore
Kind/Docs
Kind/Feature
Phase/10 Shop-Widgets
Phase/1 Grundgerüst
Phase/2 Katalog
Phase/3 Shop-Seiten
Phase/4 Shop-SEO
Phase/5 Warenkorb
Phase/6 Checkout-Übergabe
Phase/7 Domain-Switcher
Phase/8 Analytics und QA
Phase/9 Release
Priority/High
Priority/Low
Priority/Normal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Sulu-Bundles/wsc_sulubundle_syliusheadless!50
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/shop-routing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A shop address is a marker segment plus the slug from Sylius, always at the root of the webspace:
/p/winter-cap,/k/t-shirts/men. A product therefore has exactly one address, no matter how many categories carry it, and editorial pages keep their own slug (/impressum).RouteCollectionForRequestLoaderat priority 10, so editorial pages can never be shadowed by a shop addresswsc_sylius_product_url()andwsc_sylius_taxon_url()Verified against the running environment:
/p/…and/k/…answer with 200, editorial pages are untouched, a slug change in the shop redirects permanently to the new address, and a 404 without a marker costs no shop request at all. 159 tests, 439 assertions green, including the smoke tests against the live shop.closes #16
🤖 Generated with Claude Code