New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web.seeother #311
Comments
It probably not, seeother will redirect you to the path of urlparse.urljoin(ctx.path, url) |
When I use urlparse.urljoin(ctx.path, url) I got '/[your url]', But when I put the code to my web server,it seems that it makes no effert |
I can only reproduce your case by including "new/" in my location like if i input my location as "new/cake" then the URL of the page will be "/new/cake".
If above results still can't move you to the side of the answer, try pdb to see the variables value changes in your web.seeother |
The example doesn't have a trailing slash on the URL i.e I realise this is old, though others nay have the same problem :p |
When I use the code "Basic wiki in 0.3" I get from the "http://webpy.org/src/wiki/0.3", I find when I use the method "raise web.seeother('/' + form.d.url)" in the class New in wiki ,I will go to (/new/+"url") instead of (/"url"),Why? Does the method seeother just designed for this?
The text was updated successfully, but these errors were encountered: