我需要用Thymeleaf撰写这样的网址:
www.app.com /#/确认/注册?标记= 12435nvds
但是当我用
添加属性时 th:href="@{__${baseUrl}__/confirm/registration(token=${token})}"
网址变为:
www.app.com/token=12435nvds#/confirm/registration
如何逃避#?
答案 0 :(得分:0)
我尝试了很多不同的方法,但我设法做到的唯一方法是:
<a th:href="${baseUrl} + @{/confirm/registration(token=${token})}">my link</a>
HTH