Re: HTTPRedirect not altering URL

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
Lukas Schörghuber wrote:
>
> I am using the statement /raise cherrypy.HTTPRedirect("/");/ in order
> to perform a HTTP redirect. However, there is the issue that the path
> in the browser is not changed. For example when I perform a redirect
> from //onLogin/ to the index page /// the URL remains
> /http://127.0.0.1:8080/onLogin/. Is there any way to change the URL
> using /raise HTTPRedirect()/?

What browser are you testing?  HTTPRedirect defaults to a 302 or 303
redirect, which changes the address bar in the modern browsers.

-- 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.