Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Url Modifier

Get the URL of an Asset, Page, Entry, or Taxonomy term from an ID.

hero_image: assets::flying-bacon-wearing-a-batman-mask.jpg
{{ hero_image | url }}
{{ Statamic::modify($hero_image)->url() }}
/assets/flying-bacon-wearing-a-batman-mask.jpg
Hot Tip!

If your field is defined in a Blueprint, Statamic would have already used augmentation to convert the ID to an object. You can access the URL like so:

{{ hero_image:url }}
A troll pointing a teaching stick