You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the way the lookups work, it is possible to access a page with variant paths.
if you have the about_us page set as "about_us" for the URL,
you can access the page via;
"/about_us" (correct)
"/about_us/test" (wrong)
"/test/about_us" (wrong)
"/test/about_us/test" (wrong)
similar applies to categories with SEO URLs.
You can have a parent category "cat1"
you can access it via;
"/cat1" (correct)
"/cat1/test" (wrong)
"/test/cat1" (wrong)
"/test/cat1/test" (wrong)
Same applies for nested cats (parent>child{+>})
"/cat1/cat2/cat3" (correct)
"/cat1/cat2/cat3/test" (wrong)
"/cat1/test/cat3/" (wrong)
"/test/cat3/" (wrong)
"/test/cat3/test" (wrong)
Multiple "correct" URLs can also be used, with the "last correct" being the displayed one. Thus if you have 2 products "imac" and "ipod";
"/ipod/imac"
will display the imac product page.
(Fortunately, product pages have a canonical link element)
All of these can cause Canonical issues for SEO.
Even though products have the Canonical Link Element, it is still a URL that works that should not)
Options:
Ensure Canonical Link Elements are deployed throughout content (information pages, categories and products).
Stronger mapping of SEO URLs in the DB (save "chains" rather than singular cat id?)
Stronger SEO_URL code to check pathing and more decisive handling
Consider altering "responses" depending on situation (we could strip erroneous data and return a 301, or we could simply return a 404).
There is some code to help handle some of the erroneous requests, but it would need expanding to cover other eventualities.
There are also some alterations to include a Canonical Link Element on non-product pages (the categories and information pages).
This should be incorporated.
The text was updated successfully, but these errors were encountered:
\catalog\controller\common\seo_url.php
Due to the way the lookups work, it is possible to access a page with variant paths.
if you have the about_us page set as "about_us" for the URL,
you can access the page via;
"/about_us" (correct)
"/about_us/test" (wrong)
"/test/about_us" (wrong)
"/test/about_us/test" (wrong)
similar applies to categories with SEO URLs.
You can have a parent category "cat1"
you can access it via;
"/cat1" (correct)
"/cat1/test" (wrong)
"/test/cat1" (wrong)
"/test/cat1/test" (wrong)
Same applies for nested cats (parent>child{+>})
"/cat1/cat2/cat3" (correct)
"/cat1/cat2/cat3/test" (wrong)
"/cat1/test/cat3/" (wrong)
"/test/cat3/" (wrong)
"/test/cat3/test" (wrong)
Multiple "correct" URLs can also be used, with the "last correct" being the displayed one. Thus if you have 2 products "imac" and "ipod";
"/ipod/imac"
will display the imac product page.
(Fortunately, product pages have a canonical link element)
All of these can cause Canonical issues for SEO.
Even though products have the Canonical Link Element, it is still a URL that works that should not)
Options:
There is some code to help handle some of the erroneous requests, but it would need expanding to cover other eventualities.
There are also some alterations to include a Canonical Link Element on non-product pages (the categories and information pages).
This should be incorporated.
The text was updated successfully, but these errors were encountered: