Skip to content
Advertisement

Tag: hyperlink

How to use explicit links with Thymeleaf?

I wanted to make and link to external site in Spring+Thymeleaf web application and inserted link like this: <a th:href=”@{https://example.com}”>Link</a> However by clicking the link it tries to point internal location http://localhost/service/https://example.com not external website https://example.com like it supposed to. Site gives just an error “status”:500,”error”:”Internal Server Error”,”message”:”The request was rejected because the URL was not normalized.” What’s wrong and

Advertisement