How to change a URL generated by Shopify inside the <Header> tag

Triusis
Visitor
3 0 0

Hello,

I am using Brooklyn theme,

When I navigate to a products page: https://www.site.com/collections/xxxxxx/products/my-product-name,

Then inspect the HTML and search for "json+oembed",

The URL that is generated inside this header tag is https://www.site.com/products/my-product-name.oembed

<link rel="alternate" type="application/json+oembed" href="https://www.site.com/products/my-product-name.oembed">

 

What I would like is for this URL to reflect the actual page URL: https://www.site.com/collections/xxxxxx/products/my-product-name

 

Am unable to find this logic in .liquids files anywhere

 

Thanks

 

 

 

Replies 2 (2)

Triusis
Visitor
3 0 0

Have solved it

DiscountNinja
Shopify Partner
104 0 65

Hi Triusis. Can you explain what you did to resolve this? I'm interested in learning where the json+oembed URL is injected into the head by Shopify and how we can change this.

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016