thymeleaf/thymeleaf — pull request #26 by TheRealL (2012-07-04 10:30:04+00:00)
Title: Added support for server relative links without servlet API (WebContext)

Allows the usage of @{~/urls} in non-servlet containers. Originally submitted in issue #4 and #5, but now changed.

I've tested with my cookies disabled and enabled on a Tomcat7 servlet container using the first Thymeleaf example. There I have tested absolute, context / and server ~/ relative urls. All working great.

On my own non servlet based solution I've tested absolute (works), context / (fails, as it should) and server ~/ (works). I also don't have any jsessionid appended to my non-servlet solution.

Also tested out some bogus urls, like @{b/}, and that will fail as well.