Issue #490 resolved

InternalRedirect should auto-detect params in the URL

Anonymous created an issue

I have function like this:

{{{

!python

def change_view(forwardToUrl): change some variable cherrypy.InternalRedirect(forwardToUrl) }}}

Looking at the cherrypy I have to split my url into two parts seperated by ?. Why does the cherrypy.InternalRedirect not accept full urls with the variables as part of the url in addition to other api?

This is what I'm doing currently:

{{{

!python

    urlParts = urllib.unquote(forwardToUrl).split("?")

    raise cherrypy.InternalRedirect(urlParts[0], urlParts[1])

}}}

Thanks,

VJ

Reported by vinjvinj@yahoo.com

Comments (5)

  1. Log in to comment