A
A
Alexey Dzyuba2018-04-20 11:13:02
opencart
Alexey Dzyuba, 2018-04-20 11:13:02

Opencart - how to make the canonical tag not site/product, but site/category/product?

By default, opencart has canonical tags like " my-site.com/product " (if on a product page) or " my-site.com/category " (if on a category page). For example, if we are on the url " my-site.com/smartphone/iphone ", then the canonical will be " my-site.com/iphone ", but it should be " my-site.com/smartphone/iphone ".
This is probably a typical problem that developers face, but I did not find a sensible solution.
Question: Opencart - how to make the canonical tag not site/product, but site/category/product?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-04-23
@zoozag

See how it is implemented in seo_pro

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question