hi,
sounds like this could be solved when you redirect to your 404 page properly (
to /error for example). then all links should be ok.
another way to force tapestry to generate absolute links is adding this to the
jre-args:
-Dtapestry.force-absolute-uris=true
hope that helps :)
christian
Am 14.06.2010 um 14:15 schrieb Arming, Sebastian:
> Hey,
>
> I've setup a custom 404 error page in my web.xml which is generated by
> Tapestry.
>
> As links generated by tapestry are (normally) relative, they don't work on a
> 404 page for a path with several slashes.
> That is if I navigate to (non existing) "/a/b", the browser interprets the
> link "contact" as pointing to "/a/contact/" instead of "/contact".
>
> As a workaround I've put
>
> void setupRender(){
> request.setAttribute(InternalConstants.GENERATING_RENDERED_PAGE, true);
> }
>
> into the error page.
>
> Is there a way to achieve a similar outcome without using the internal api?
>
> I don't want to redirect to the error page for usability (and probably HTTP
> standard) reasons.
>
> Thanks,
> Sebastian
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]