We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ perl -MMojo::URL -le '$u = Mojo::URL->new("http://x.com/a/"); $x = Mojo::URL->new("?page=1")->to_abs($u); print $x;' http://x.com/a?page=1
Expected url is http://x.com/a/?page=1
http://x.com/a/?page=1
to_abs drop trailing slash, but browsers leave trailing slash when address bar has trailng slash and href attr contains only query string.
to_abs
The text was updated successfully, but these errors were encountered:
2c139a0
Thanks, should be fixed.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce the behavior
Expected behavior
Expected url is
http://x.com/a/?page=1
Actual behavior
to_abs
drop trailing slash, but browsers leave trailing slash when address bar has trailng slash and href attr contains only query string.The text was updated successfully, but these errors were encountered: