Ability to optionally always exclude JSESSIONID from @{} processed URLs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Ability to optionally always exclude JSESSIONID from @{} processed URLs

munnja001
We're working on an application that has apache fronting our tomcat servers. To improve performance, we're serving all of our static assets from apache instead of tomcat. When the jsessionid is appended to our static asset URLs, it causes apache to not be able to find the resource. If would be beneficial if there was a way in thymeleaf to exclude attaching the jsessionid to the urls in with defined url paths such as /css/*, /img/*, etc.
Reply | Threaded
Open this post in threaded view
|

Re: Ability to optionally always exclude JSESSIONID from @{} processed URLs

danielfernandez
Administrator
Hi,

Version 2.0.15 of Thymeleaf (which will be released next week) will use the "response.encodeURL(...)" mechanism for encoding URLs generated with @{...} expressions.

This will allow you to use an URL rewrite filter like http://code.google.com/p/urlrewritefilter/ in order to configure how your URLs should be rewritten (or not).

Until 2.0.15 is released, you can use the 2.0.15-SNAPSHOT version by following the instructions for using snapshot versions at the FAQ ( http://www.thymeleaf.org/faq.html ).

Regards,
Daniel.