Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

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 →