summaryrefslogtreecommitdiff
path: root/spring-boot/06-form-handling-with-thymeleaf
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-06-06 21:29:42 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-06-06 21:29:42 +0530
commit9c9d4a713c0f48a9f99e5c3ee9c03d245de4b931 (patch)
treedeeca88f878f717ab6ca7ade269c596ae9120d88 /spring-boot/06-form-handling-with-thymeleaf
parent8fc60b3ccd9fd076004d61c2bc190aaedd073c46 (diff)
Added th:href to web pages in Spring Boot sample web apps with Thymeleaf
Diffstat (limited to 'spring-boot/06-form-handling-with-thymeleaf')
-rw-r--r--spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/contact/result.html2
-rw-r--r--spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/contact/result.html b/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/contact/result.html
index 607a9eb..354c8b3 100644
--- a/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/contact/result.html
+++ b/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/contact/result.html
@@ -12,6 +12,6 @@
<p th:text="'Thank you ' + ${contactForm.name} + '.'" />
- <a href="/contact">Try again</a>
+ <a th:href="@{/contact}">Try again</a>
</body>
</html> \ No newline at end of file
diff --git a/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/index.html b/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/index.html
index 9259f47..1f4b54c 100644
--- a/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/index.html
+++ b/spring-boot/06-form-handling-with-thymeleaf/src/main/resources/templates/index.html
@@ -11,7 +11,7 @@
<h1>Form handling example with Thymeleaf</h1>
-<a href="/contact">Contact Us</a>
+<a th:href="@{/contact}">Contact Us</a>
</body>