Sitemap-Provider für Produkte und Kategorien (#23) #66
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!66
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/sitemap-provider"
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?
Summary
ProductSitemapProvider(aliaswsc_sylius_products) andTaxonSitemapProvider(aliaswsc_sylius_taxons), registered under Sulu'ssulu.sitemap.providertag.RobotsResolver(#22) via a newRobotsDirective::isIndexable(), so sitemap, canonical and robots tag never contradict each other.ShopUrlGenerator::slugPath()rather thanforProduct(..., ABSOLUTE_URL): the latter depends on Sulu's persisted route table, which only contains a shop address after it has been delivered once — a dead end for a sitemap whose whole point is announcing pages nobody has visited yet. Found live in DDEV; details indocs/architecture.md.slugPath()carries no locale prefix, matching this project's single-locale webspaces today; a multi-locale webspace would need that revisited alongside #24.Closes #23.
Test plan
composer cs-check— cleancomposer phpstan(level 8) — cleancomposer test— 444 tests green (new:SitemapWebspaceResolverTest,ProductSitemapProviderTest,TaxonSitemapProviderTest, each with a case spanning more than one sitemap page)/sitemap.xmllistswsc_sylius_products-1.xmlandwsc_sylius_taxons-1.xml; 176 resp. 20 addresses, spot-checked entries return200despite never having been visited before🤖 Generated with Claude Code