On Thursday, December 4, 2014 4:38:33 PM UTC-5, Jim S wrote: > > Fixed my issue by using: > > requested_uri = request._var.requested_uri > > instead of: > > requested_uri = request.env.request_uri > > ...in my error_handler controller method. Not sure if a clarification is > necessary in The Book, or if I just interpreted it incorrectly. >
I suppose the confusion is that the book says: - requested_uri: equivalent to request.env.request_uri However, when it says the "requested_uri" query string variable is equivalent to request.env.request_uri, it means it is equivalent to the request.env.request_uri of the originally requested URL (i.e., the one that generated the error) -- not that it is equivalent to the value that request.env.request_uri will subsequently have inside the error handler (though, as noted in my previous post, these are in fact the same when not using a router, and should probably always be the same). Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.