Hi,
I am on ZC 1.5.6c, PHP 7.3.15, MariaDB 10.3.22. Site is:
https://www.proteawines.jp/shop/
I think $canonicalLink is broken for products, although it seems to work for categories.
I initially noted that Facebook is having trouble with previewing products, using the Structured Data plugin.
Looking at the canonical URLs generated (with "&" as "&"), I saw that without cPath the links are not valid in my browser even.
But category links are fine. Summary:
https://www.zen-cart.com/showthread....04#post1368504
Looking at my site for a product, I have:
None of these links is found in Firefox.Code:<link rel="canonical" href="https://www.proteawines.jp/shop/index.php?main_page=product_info&products_id=188" /> <link rel="alternate" href="https://www.proteawines.jp/shop/index.php?main_page=product_info&products_id=188&language=ja" hreflang="ja" /> <link rel="alternate" href="https://www.proteawines.jp/shop/index.php?main_page=product_info&products_id=188&language=en" hreflang="en" />
Category links have the same issue in Firefox, although they seem to be accepted by Facebook:
Sorry I do not understand the ins and outs of the escaping convention, but I assume an href link should work in a browser.Code:<link rel="canonical" href="https://www.proteawines.jp/shop/index.php?main_page=index&cPath=82" /> <link rel="alternate" href="https://www.proteawines.jp/shop/index.php?main_page=index&cPath=82&language=ja" hreflang="ja" /> <link rel="alternate" href="https://www.proteawines.jp/shop/index.php?main_page=index&cPath=82&language=en" hreflang="en" />
Bookmarks