cancel
Showing results for 
Search instead for 
Did you mean: 

Malformed canonical URLs

Malformed canonical URLs

I have enabled both "Use Canonical Link Meta Tag For Categories" and "Use Canonical Link Meta Tag For Products" in Stores > Configuration > Catalog > Search Engine Optimization

 

The canonical tags are being injected into the head as expected but some of them are displaying strangely, similar to this:

https://website.com/catalog/product/view/_ignore_category/1/id/12345/s/product_name/

 

Does anybody know why this might be happening?

2 REPLIES 2

Re: Malformed canonical URLs

Hello @marc_horne 

 

You have to generate a URL for this.

Refer https://github.com/elgentos/regenerate-catalog-urls 

This extension will help you.

Thanks.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Malformed canonical URLs

Hi Meetanshi,

 

Thank you for your response. I will try it out.

 

I'm still learning a lot about Magento so I was hoping you could explain to me a little how this works. It seems like generating canonical URLs is a built in feature of Magento so it feels a little wrong that it would require a 3rd party extension to generate these URLs. Can you explain briefly why this is necessary?

 

Thank you