SOLVED Help - Logout not working on mobile view


  • Hi,

    I noticed that we can logout from the desktop view, but clicking the logout link from mobile view doesn't do anything.

    We're running NodeBB v1.14.3 and we're using the nodebb-plugin-session-sharing plugin v4.6.7.

    Has anyone experienced the same issue? Can you please help us figure out how to fix?

    Thanks!


  • We have fixed the issue. Our template was based on slick. We compared this to Persona and found differences:

    In Slick:

    <li component="user/logout">
      <a href="#"><i class="fa fa-fw fa-sign-out"></i><span> [[global:logout]]</span></a>
    </li>
    

    In Persona:

    <li component="user/logout">
      <form method="post" action="{relative_path}/logout">
        <input type="hidden" name="_csrf" value="{config.csrf_token}">
        <input type="hidden" name="noscript" value="true">
        <button type="submit" class="btn btn-link">
          <i class="fa fa-fw fa-sign-out"></i><span> [[global:logout]]</span>
        </button>
      </form>
    </li>
    

Suggested Topics

| |