Reputation: 3749
It is possible to create a url in Thymeleaf to an URL fragment identifier:
<a th:href="@{/search#item-25(q=${query},all='true')}">
more...
</a>
However i want to dynamically create the fragment identifier (such that I can link to #item-n
), something like (not working code):
<a th:href="@{/search#item-${n}(q=${query},all='true')}">
more...
</a>
How can this achieved with Thymeleaf?
Upvotes: 1
Views: 837