Mount_url Tag
The Mount URL tag is used to return the URL to a collection's mount entry.
Overview
This tag lets you get the URL to a collection's mount entry.
<a href="{{ mount_url handle="blog" }}">Read Our Blog</a>
<a href="{{ Statamic::tag('mount_url')->handle('blog') }}">Read Our Blog</a>
Shorthand
You may also use a shorthand syntax, where the second tag argument is the collection handle.
<a href="{{ mount_url:blog }}">Read Our Blog</a>
<a href="{{ Statamic::tag('mount_url:blog') }}">Read Our Blog</a>
Parameters
handle
string
required
Specify the name of the collection.
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page