Replace the entire nav with <div th:replace="fragment/layout :: topbar"></div>.