User:Logout_URL Tag

Example

<a href="{{ user:logout_url }}">Log out</a>
<a href="{{ Statamic::tag('user:logout_url')->fetch() }}">Log out</a>

Parameters

redirect

string

Where the user should be redirected after logging out. Defaults to the home page.

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →