Canonical tags are not applied after 3rd category level
Store Framework
•
ID: 932349
Backlog
Published on11/8/2023
•
Last updated on10/10/2024
1 min read
Summary
Canonical tags are not applied after 3rd category level when having a category tree with more than 3 levels (department, category and subcategory), the other above levels aren't displayed in canonical. The only exception is when the routes are stored in rewriter.
Simulation
- Create any 4th level subcategory
- Access the page created
- Check the Canonical for it on the console, it will not show anything after the 3rd level. Only 3rd and bellow.
Workaround
Run the bootstrap query on rewriter vtex.routes-bootstrap@0.x:
{bootstrap{categories}}