Hi all,
In a number of places in my app, I've been using code like:

redirect(url('/path', param=value))

Which, when the application is deployed at a root path, works as
expected - redirecting to /path?param=value.

However, when I deploy at a non-root path (as described here
http://pylonshq.com/docs/en/0.9.7/deployment/#prefixmiddleware), both
redirect and url seem to prepend the path prefix, so that (if I had
deployed to /my_app):

redirect(url('/path', param=value))

Would result in /my_app/my_app/path?param=value

Obviously, I can replace redirect(url(path, **params)) with
redirect(path, **params), but this is a paradigm that appears in the
default quickstarted project, and maybe shouldn't?

James

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to