I have a slight problem using assets (images and css files) my app. within 
Layout.tml I have:

<link href="${asset:context:styles/style.css}" rel="stylesheet" type="text/css" 
/>

This works fine when I access the app at http://localhost/app/start for 
example. But when I try http://localhost/app/start/ the css and images are 
screwed. I've noticed that in the generated html, T5 creates relative 
references i.e. styles/style.css, not /app/styles/style.css

I've also tried to use the @IncludeStylesheet annotation in Layout.java but I 
get the same effect.

Has anyone else encountered this?

Thanks

Toby


Reply via email to