Opened 13 years ago
Closed 13 years ago
#25737 closed defect (bug) (duplicate)
Duplicated category URLs
| Reported by: | riccardo.raneri | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Canonical | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
When using nested categories, every URL that ends with a valid category slug works. For example (using WooCommerce, but you get the same with the standard WP structure, "category" instead of "products"):
- http://www.example.com/products/pasta-and-risotto/pasta/
- http://www.example.com/products/a-random-slug/pasta/
- http://www.example.com/products/pasta/
In this example, "pasta" is a subcategory of "pasta-and-risotto". If you go to the three URLs above you'll get the same page.
This is wrong from a logic point of view, because only the first URL is correct (it respects the structure of categories I have set in the admin interface -- in fact, the automatic navigation menu links to this one). In addiction of this, it generates duplicated content.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Duplicate of #18734.