When I navigate to a private page, i am shown the login form as i would expect, this then shows me a login status in my nav (code below) once logged in
The button i am presented with states log out but it does not work, I do not know how to fix this can anyone help?
how can i log out a front end user?
i have inserted this code into my nav bar
{% if grav.user.username %}
<li><i class="fa fa-lock"></i> {% include 'partials/login-status.html.twig' %}</li>
{% endif %}
which will load this from the login plugin
<span class="login-status">
{% if grav.user.authenticated %}
<strong>{{ grav.user.fullname ?: grav.user.username }}</strong>, <a class="logout" href="{{ uri.addNonce((base_url_relative ~ uri.path)|trim('/') ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce')|e }}">{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}</a>
{% endif %}
</span>
and on my page i added
access:
site.ambassador: true
login:
visibility_requires_access: true