URL filters

URL filters output links to assets on Shopify's Content Delivery Network (CDN). They are also used to create links for filtering collections and blogs.

In many URL filter outputs, you will see a question mark (?) with a number appended to the asset's file path. This is the file's version number. For example, the version number in this URL is 28253:

URL filters will always load the latest version of an asset.

asset_url

Returns the URL of a file in the "assets" folder of a theme.

asset_img_url

Returns the asset URL of an image in the "assets" folder of a theme. asset_img_url accepts an image size parameter.

file_url

Returns the URL of a file in the Files page of the admin.

file_img_url

Returns the asset URL of an image in the Files page of the admin. file_img_url accepts an image size parameter.

Generates a link to the customer login page.