passenger-ruby-heroku-demo icon indicating copy to clipboard operation
passenger-ruby-heroku-demo copied to clipboard

URL generated use the wrong port

Open ignatiusreza opened this issue 11 years ago • 1 comments

Rails application is thinking that the request is done to whichever port passenger is running, hence, request.url (both on Rack::Request & ActionDispatch::Request) & url_for only_path: false will use this port in generated url (e.g : http://example.com:4000/path)

The generated url should use the original port.

ignatiusreza avatar Mar 04 '14 10:03 ignatiusreza

Having the same issue here :+1:

tomchentw avatar Sep 29 '14 09:09 tomchentw