You are currently viewing [solved] id pass in href in thymeleaf

[solved] id pass in href in thymeleaf

  • Post author:
  • Post category:Guides
  • Post comments:0 Comments
  • Post last modified:November 3, 2021
  • Reading time:1 mins read

How to pass id in href tag in thymeleaf



The right way according to Thymeleaf documention for adding parameters is:

<a th:href=”@{/category/edit/{id}(id=${category.idCategory})}”>view</a>


Hope it helps

Leave a Reply