Broken Logout Link in 5.7
In order to display a logout button on the bottom of my theme I include the following piece of code:
<a href="<?= View::url('/login','logout'); ?>">Logout</a>
This produces the URL "/login/logout", however when visited, it fails to log out the user, and instead just shows the login page - but when the back button is clicked (and page refreshed multiple times to check for cache) the user is still logged in.
Looking at the admin side-bar logout button, I found the URL is different:
It seems to have some session ID attached, and I'm wondering if this is why my link fails to log out the user?
Any help would be great!
<?php echo Core::make('helper/navigation')->getLogInOutLink(); ?>
As of right now though, 5.7.4 hasn't officially been released, but it will be very soon.
Sorry for the confusion.