cancel
Showing results for 
Search instead for 
Did you mean: 

Custom canonicals for product pages

Custom canonicals for product pages

This is a Magento 2.4 question.

 

Our product pages have canonical URLs that look like:

<link rel="canonical" href="https://www.example.com/shop/product" />

 

I need to add ?configure to the end of the canonical URL to make it look like this:

<link rel="canonical" href="https://www.example.com/shop/product?configure" />

 

I'm open to using a Magento extension, custom coding, or anything that can solve this issue.  If you have a solution, I'm extremely interested.