Skip to content
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

Fix for redirect_to to respect urls with a network path reference like "//asset.host.com/resources/1235" #3857

Merged

Conversation

Overbryd
Copy link
Contributor

@Overbryd Overbryd commented Dec 5, 2011

Rails doesn't respect network path references that are defined in RFC3986 Section 4.2.
If we want to redirect_to "//asset.host.com/resources/12345" Rails redirects to http://application.host.com//asset.host.com/resources/12345.

For more information see Issue #3856

josevalim added a commit that referenced this pull request Dec 5, 2011
…ath_reference

Fix for redirect_to to respect urls with a network path reference like "//asset.host.com/resources/1235"
@josevalim josevalim merged commit 446bdb4 into rails:master Dec 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants