'Can't get thymeleaf parameter in href from model attribute
Solution 1:[1]
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
Solution 2:[2]
The correct syntax for your links should be:
1: th:href="@{/{id3}/releases/{id3}(id3=${release.releaseId})}"
or
1: th:href="@{/{id3}/releases/{id2}(id3=${release.releaseId}, id2=${release.releaseId})}"
(if you really want to use 2 different variables for the same value.)
2: th:href="@{/releases/new/{id}(id=${systemId})}"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sas |
| Solution 2 | Metroids |
