Force canonical category does not work in some cases

Started by Can.Y, May 17, 2024, 11:11:52 AM

Previous topic - Next topic

Can.Y

Environment
VM 4.2.0.10905
Joomla 4.3.4

Hi, I have a problem when using VM4 canonical tag:
1. A child product is not assigned to any categories. (While the parent product assigned to one or more categories.)
2. The "Force canonical category" of this child product is set. (While the parent product also has a 'force canonical category' set)
3. The only 2 ways for customers to access this child product detail page.
   A) By switching the corresponding param of the variate on the parent product detail page, or
   B) By entering keywords in the site search filter.
4. However, when browsing this child product detail page and checking the source code, the value of the canonical tag URL changes along with the browser URL (the same content in different categories) instead of generating the canonical tag URL from the "Force canonical category"

(The attached images are the screenshots of the source code of the same product detailed page from two different browser URLs. And a screenshot of the product force canonical category setting.)

Thank you.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/