You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John <jo...@quivinco.com> on 2013/06/10 13:51:52 UTC

bad image links after redirect

I have a page protection filter that redirects unpermitted page requests to the Denied page, however the redirected url looks like this:

http://0.0.0.37:8080/audit/denied/ManageUsers

where the original page requested is added to the end of the url. For some reason this damages the page render because the images in the enclosing layout are not located. Something to do with relative paths I guess, any ideas? Other pages work fine, so it just seems to be the redirection.

regards,
John

Re: bad image links after redirect

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Mon, 10 Jun 2013 08:51:52 -0300, John <jo...@quivinco.com> wrote:

> I have a page protection filter that redirects unpermitted page requests  
> to the Denied page, however the redirected url looks like this:
>
> http://0.0.0.37:8080/audit/denied/ManageUsers
>
> where the original page requested is added to the end of the url. For  
> some reason this damages the page render because the images in the  
> enclosing layout are not located. Something to do with relative paths I  
> guess, any ideas? Other pages work fine, so it just seems to be the  
> redirection.

Avoid using relative paths to images and other resources (CSS, JS, etc).  
And you've already answered your question. This isn't related to  
redirections at all: it's actually caused by the combination of relative  
paths and the URLs of your pages.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org