Use th:replace

This commit is contained in:
Marcus Da Coregio
2022-10-24 09:59:41 -03:00
parent 6937a1a2b5
commit e1095d6f31
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
<link rel="stylesheet" href="/static/css/main.css" th:href="@{/css/main.css}" />
</head>
<body>
<div th:substituteby="index::logout"></div>
<div th:replace="index::logout"></div>
<h1>This is a secured page!</h1>
<p><a href="/" th:href="@{/}">Back to home page</a></p>
</body>

View File

@@ -22,7 +22,7 @@
<link rel="stylesheet" href="/static/css/main.css" th:href="@{/css/main.css}" />
</head>
<body>
<div th:substituteby="index::logout"></div>
<div th:replace="index::logout"></div>
<h1>This is a secured page!</h1>
<p><a href="/" th:href="@{/}">Back to home page</a></p>
</body>