Forum: Ruby on Rails redirect_to issue - lost port number

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
MikeDucharme (Guest)
on 2009-05-02 14:35
(Received via mailing list)
Hi all,

I found an issue with "redirect_to" by accident and hoped someone
could fill me in on what is happening. If I try to do a redirect to
somewhere that doesn't exist, the port number will be dropped from the
url and I get a "Can't connect to server" error.

http://localhost:3000/some-folder/

redirect_to "beans"

http://localhost/

I guess it's defaulting to port 80, but can anyone tell me why?
This topic is locked and can not be replied to.