On Apr 25, 2009, at 11:44 PM, Max Ischenko wrote:
The defaul path argument in StatusCodeRedirects is /error/document (not absent trailing slash). My routing config has .append_slashes = True so when it tries to lookup this path routes tells it 301 redirect to /error/document/ (with a slash). And since there is no one to follow it, it is returned as a wsgi response for browser to display.Unsure whether this could be called a pylons bug or not.
Well, the whole slash thing is pretty magical, and is deprecated. In new Pylons projects, they're set to use non-minimizing routes, which takes care of the issue entirely and is significantly more predictable. If the route has a slash at the end, its needed, no slash, then there's no slash. The route is *always* exactly as its defined, parts don't magically disappear like with the default minimizing behavior.
Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
