With Pylons 1.0 the following should work:

Note: The imports below should be set in the controller file or in
another module such as, say, helpers.py

......
from pylons.controllers.util import redirect
from pylons import url
.......

def testController(BaseController):

      def test_redirect(self):
           return redirect(url('http://www.cnn.com'))

On Oct 4, 2:14 pm, Ryan <[email protected]> wrote:
> This:
> redirect('http://www.website.com')
>
> Will redirect to:http://www.myapp.com/http://www.website.com
>
> I'd like it to redirect to:http://www.website.com
>
> Is there an addition argument I can pass to redirect to make it happen?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to