Search code examples
htmlattributesthymeleafhref

Can't get thymeleaf parameter in href from model attribute


I'm new to thymeleaf. I can't get systemId in th:href ,but I can do it in <p th:text...

What's the problem? Pls, help

My code

Result


Solution

  • Just replace this code <a th:href="@{|/${systemId}/releases/${release.getReleaseId()}|}"

    <a th:href="@{|/${systemId}/releases/new|}" the "| |" is solution of the problem

    https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html read here 4.8