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