{"action":"closed","issue":{"url":"https://api.github.com/repos/kraih/mojo/issues/975","repository_url":"https://api.github.com/repos/kraih/mojo","labels_url":"https://api.github.com/repos/kraih/mojo/issues/975/labels{/name}","comments_url":"https://api.github.com/repos/kraih/mojo/issues/975/comments","events_url":"https://api.github.com/repos/kraih/mojo/issues/975/events","html_url":"https://github.com/kraih/mojo/issues/975","id":161602623,"number":975,"title":"Lose trailing slash while create absolute url","user":{"login":"avkhozov","id":427039,"avatar_url":"https://avatars.githubusercontent.com/u/427039?v=3","gravatar_id":"","url":"https://api.github.com/users/avkhozov","html_url":"https://github.com/avkhozov","followers_url":"https://api.github.com/users/avkhozov/followers","following_url":"https://api.github.com/users/avkhozov/following{/other_user}","gists_url":"https://api.github.com/users/avkhozov/gists{/gist_id}","starred_url":"https://api.github.com/users/avkhozov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avkhozov/subscriptions","organizations_url":"https://api.github.com/users/avkhozov/orgs","repos_url":"https://api.github.com/users/avkhozov/repos","events_url":"https://api.github.com/users/avkhozov/events{/privacy}","received_events_url":"https://api.github.com/users/avkhozov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-22T06:21:49Z","updated_at":"2016-06-22T13:15:37Z","closed_at":"2016-06-22T13:15:37Z","body":"* Mojolicious version: 6.66\r\n* Perl version: 5.22.1\r\n* Operating system: Ubuntu 16.04 LTS\r\n\r\n### Steps to reproduce the behavior\r\n```bash\r\n$ perl -MMojo::URL -le '$u = Mojo::URL->new(\"http://x.com/a/\"); $x = Mojo::URL->new(\"?page=1\")->to_abs($u); print $x;'\r\nhttp://x.com/a?page=1\r\n```\r\n\r\n### Expected behavior\r\nExpected url is ``http://x.com/a/?page=1``\r\n\r\n### Actual behavior\r\n``to_abs`` drop trailing slash, but browsers leave trailing slash when address bar has trailng slash and href attr contains only query string.\r\n"}}
{"actor":{"display_login":"kraih"}}