You could replace the previous 2 lines with `<li><form th:method="POST" th:action="@{/log-me-out}"><button type="submit">Log out</button></form></li>`