problem when i change canonical url in the product

  • Posts: 281
  • Thank you received: 3
8 years 7 months ago #254672

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4

Hello
In configuration I changed the setting of Force canonical URLs on listings from NOT to Use canonical URL and generate it if missing.
BUt if i try to change to canonical URL in the product from:
/inchiostri-tattoo/panthera/product/panthera-liner
to
panthera-liner
It does't work, pratically intead of the product I am redirect to an article of joomla

Why that??
Thanks
Frank

Please Log in or Create an account to join the conversation.

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 7 months ago #254698

Hi,

It's probably because the URL yourwebsite.com/panthera-liner is not a valid URL. And thus the Joomla router redirects that URL to the 301 joomla article which is set to display when the URL used is invalid.
In the canonical URL field, you can't put any URL. You can only put there one of the URLs of the product page.
So for example, instead of /inchiostri-tattoo/panthera/product/panthera-liner you could put /inchiostri-tattoo/panthera/product/XXX-panthera-liner where XXX is the id of the product or /component/hikashop/product/show/cid-XXX , etc.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum