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

"protocol-relative" URLs not working correctly? #73

Closed
psranga opened this Issue Apr 2, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@psranga

psranga commented Apr 2, 2013

The output of:

URI("//localhost:8080/a/abcd.txt").absoluteTo("https://localhost:8080/e/g.txt").toString())

should be (AFAIK): https://localhost:8080/a/abcd.txt

instead it is: //localhost:8080/a/abcd.txt

Am I missing something. Would appreciate it if you fixed this. Thanks for a wonderful library!

Protocol-relative URL: http://paulirish.com/2010/the-protocol-relative-url/

Jsfiddle: http://jsfiddle.net/zYPKb/

@rodneyrehm

This comment has been minimized.

Show comment
Hide comment
@rodneyrehm

rodneyrehm Apr 2, 2013

Member

At the moment relativeTo() and absoluteTo() only work on the path part. I'll revisit the Transform References algorithm. you're right, this seems to be a bug.

Member

rodneyrehm commented Apr 2, 2013

At the moment relativeTo() and absoluteTo() only work on the path part. I'll revisit the Transform References algorithm. you're right, this seems to be a bug.

@rodneyrehm rodneyrehm closed this in 4a85824 Apr 2, 2013

@psranga

This comment has been minimized.

Show comment
Hide comment
@psranga

psranga Apr 2, 2013

Great! Thanks a lot!

psranga commented Apr 2, 2013

Great! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment