Issue #490 resolved

InternalRedirect should auto-detect params in the URL

Anonymous created an issue

I have function like this:



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:



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

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




Reported by

Comments (5)

  1. Log in to comment