-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite_url adds port twice #4816
Comments
but there is no |
Indeed, you are right. I copy-pasted the title of the old post, because, despite the fact that this rewrite_url method doesn't exist anymore, the port is still added twice in many case. And I don't know why... I thought it was due to a use of request.host_with_port instead of request.host at some places in the code. I tried to patch it but without success. I also tried to override following method: def default_url_options( options = {} ) Still no success. So I escalate... Thanks!! |
I'm also having this problem. It appeared on my development copy (I think) after I included Stringex to create pretty URLs. I'm not getting it on the production server though. |
Is this still an issue? If so, what branch of Rails (3-x-stable, master)? |
I haven't got it anymore for weeks so, I guess we can close it. Thanks! |
Problem still arises with latest Rails on model creation/update Redirected to http://localhost:3000:3000/change_world_projects/4 |
@sumkincpp what exactly did you do to make this appear? |
@steveklabnik actually nothing unusual, just generated a new scaffold. Sorry for an issue, probably there may be no a bug, but I'll look carefully to my code and I'll report if it will arise again |
I'm adding this to my list, I will review soon |
Hey @sumkincpp ! We can't reproduce this at all, and it seems you can't, either. Therefore, I'm giving it a close. If you can post a reproduction, please do so, and I'll try to fix it. But until then, there's nothing I can do. |
Hi I am using rails 3.2.6. I have defined route in route.rb for facebook connect like this. get ':provider/connect' => 'authentications#connect', as: 'connect' when I try to get connect_url , its giving me the path "http://localhost:3000:3000/facebook/connect" Can anyone help resolving the issue |
@mayank-s can you upgrade to 3.2.9? |
This is the re-opening of an old ticket you can find here: https://rails.lighthouseapp.com/projects/8994/tickets/1106-rewrite_url-adds-port-twice.
The issue is:
Whenever I use an url_helper or a redirect in development mode, the port is added twice to the url: http://localhost:3000:3000/clips
Is it supposed to be fixed in Rails 3? I'm having the issue in rails 3.1 and 3.2.
The text was updated successfully, but these errors were encountered: