To create a Context-relative URLs we need to use
th:href attribute like in the following example:
if application was installed under
http://localhost:8080/sampleapp that URL will look like the following:
Read more about how to create links in Thymeleaf here.