Skip to content Skip to footer navigation

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.