Ao clicar no link de logout, a página só chama o "#" e não faz o Logout.
segue código:
<div th:fragment="logo" class="logo-container mb-3 p-3 d-flex justify-content-between ">
<span class="logo">Mudi</span>
<span class="mt-3">
<a class="text-light"sec:authorize="!isAuthenticated()" href="/login">Login</a>
<a onclick="document.querySelector('#form-login').submit" class="text-light" sec:authorize="isAuthenticated()" href="#">Logout</a>
<form id="form-login" th:action="@{/logout}" method="post"></form>
</span>
</div>