fix: make back home button navigate correctly

This commit is contained in:
Erzbir
2026-07-09 14:07:57 +08:00
parent 8c73ea61e2
commit f159ca77a3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="post-content">
<p th:text="${error?.detail}"></p>
</div>
<button data-pjax th:href="@{/}" th:text="#{page.error.back}">
<button type="button" th:onclick="|location.href='@{/}'|" th:text="#{page.error.back}">
Back to home page
</button>
</div>
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="post-content">
<p th:text="${error?.detail}"></p>
</div>
<button data-pjax th:href="@{/}" th:text="#{page.error.back}">
<button type="button" th:onclick="|location.href='@{/}'|" th:text="#{page.error.back}">
Back to home page
</button>
</div>
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="post-content">
<p th:text="${error?.detail}"></p>
</div>
<button data-pjax th:href="@{/}" th:text="#{page.error.back}">
<button type="button" th:onclick="|location.href='@{/}'|" th:text="#{page.error.back}">
Back to home page
</button>
</div>