#398 ✓resolved
Xavier Noria

redirect_to and paths

Reported by Xavier Noria | August 15th, 2010 @ 10:54 PM | in The Rails 3 Way

Section 2.6.2 says that redirect_to "seems" to work with relative paths.

Yes, it does. If the argument is a string that is not an absolute URL, it gets protocol, host, and port (unless port is the default for the scheme) prepended.

That sentence could be reworded to simply assert it does understand absolute paths.

I personally find that url helpers are more coherent with redirect_to than path helpers. Although absolute paths are supported, I do not use this feature.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Referenced by

Pages