[Zope] REQUEST.URL and missing subfolders

Dieter Maurer dieter@handshake.de
Tue, 24 Jul 2001 21:39:07 +0200 (CEST)


Peter Hernberg writes:
 > I'm configuring standard_error_message to forward 404s to their new location.
 > According to the Zope Book, REQUEST.URL is "The URL of the Request without query
 > string". I think I'm getting nailed by that "without query string" part. If
 > someone requests http://www.mysite.com/a/b and there is no 'a' object,
 > REQUEST.URL (when accessed from standard_error_message) will be
 > 'http://www.mysite.com/a'. I assume this is because Zope thinks 'b' is an
 > argument being passed to 'a'. How can I get the *real* URL the client requested?
The URL variables are build during traversal.
If traversal fails due to a missing object, they are truncated.

You can use REQUEST.PATH_INFO to get the full url.


Dieter