1. Home
  2. Liquid
  3. Absolute url

Creates an absolute path url. The path will include the value of the "url" and "baseurl" settings from the _config.yml file.

#liquid#url
{{ "/assets/app.js" | absolute_url }}
// Returns https://shortcode.dev/assets/app.js
copy
Full Liquid cheatsheet