Liquid syntax in generating CDN URLs in Shopify

I need help with a CDN URL difference in two Shopify stores.

In one store, the Liquid syntax

{{ "application.css" | asset_url | stylesheet_tag }}

renders as:


in https://orivet-international.myshopify.com/.

However, the same code renders as:


in https://usa-orivet.myshopify.com/.

The starting part is different:

href="//cdn.shopify.com/ vs. href="/cdn/.

I want both to be the same as

href="//cdn.shopify.com/.

Any solutions?

1 Like

Hi there,

When I load in the pages I actually get the good link tag on both pages. Are you sure you have actually placed the CSS file in the correct place and don’t have a double file somewhere? It looks like maybe one CSS file is loaded from the ‘Content’ part and the other from the ‘Theme’ part.

Hope this helps.

1 Like