Open tobi-or-not-tobi opened 5 years ago
Related to #5863 (Redirects in SSR to canonical url)
Hi, Any news on this issue ?
This seems quite critical as it can be interpreted as duplicate content by search engine which is not good in terms of SEO. Please also notice that this also affects Category Page.
@Xymmer When you say "#5863 is done" .. not really, it got closed as a duplicate of this ticket
Related to https://github.com/SAP/spartacus/issues/9681
@Platonn I would say it is only loosely related to #9681 - that is about URLs that fall through to the catch-all and should generate 404s, whereas this about redirect to canonical URLs where URLs have a correct/valid pattern but some parts of the URL are not current.
https://github.com/SAP/spartacus/issues/5863 which got closed as a duplicate of this talks more specifically about PDP/PLP pages
The product and category page routes do have the ability to match the
/p
or/c
prefix, with any additional prefixes. The route is taken into account, however, the final URL isn't updated in case of misuse.There are different use cases where we should come up with a solution:
/crazy/company/p/1234
, the product detail page would still fetch the product data and nothing would change./p/1234/shitty-product
would be working fine./corporate/shitty-company
, and the CMS will render the page for/company
.We should come up with a solution for these use-cases. There's likely an alternative approach for product or content pages.