-
Notifications
You must be signed in to change notification settings - Fork 475
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
Sub-optimal result in relativeTo with fragment #95
Comments
I agree with @psranga, The query component should get similar relativization treatment also IMO. I do mean to get back and finish my work for #78 at some point, but my workload has been higher than expected lately and my health has been poor – so it’s not going to happen for a little while unfortunately. |
I've fixed this in master - it will be included in the next release. thank you for your help! |
URI("http://www.example.com:8080/dir/file#abcd").relativeTo('http://www.example.com:8080/dir/file').toString()
returns
./file#abcd ('#abcd' would have been better)
The more-optimal result seems to work with absoluteTo:
URI("#abcd").absoluteTo('http://www.example.com:8080/dir/file').toString()
returns
"http://www.example.com:8080/dir/file#abcd"
Great library, btw!
The text was updated successfully, but these errors were encountered: