{"action":"closed","issue":{"url":"https://api.github.com/repos/nrabinowitz/pjscrape/issues/62","labels_url":"https://api.github.com/repos/nrabinowitz/pjscrape/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/nrabinowitz/pjscrape/issues/62/comments","events_url":"https://api.github.com/repos/nrabinowitz/pjscrape/issues/62/events","html_url":"https://github.com/nrabinowitz/pjscrape/issues/62","id":75965896,"number":62,"title":"_pjs.toFullUrl can't properly handle //domain.tld","user":{"login":"Marooned-MB","id":716018,"avatar_url":"https://avatars.githubusercontent.com/u/716018?v=3","gravatar_id":"","url":"https://api.github.com/users/Marooned-MB","html_url":"https://github.com/Marooned-MB","followers_url":"https://api.github.com/users/Marooned-MB/followers","following_url":"https://api.github.com/users/Marooned-MB/following{/other_user}","gists_url":"https://api.github.com/users/Marooned-MB/gists{/gist_id}","starred_url":"https://api.github.com/users/Marooned-MB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marooned-MB/subscriptions","organizations_url":"https://api.github.com/users/Marooned-MB/orgs","repos_url":"https://api.github.com/users/Marooned-MB/repos","events_url":"https://api.github.com/users/Marooned-MB/events{/privacy}","received_events_url":"https://api.github.com/users/Marooned-MB/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T12:22:44Z","updated_at":"2015-05-13T12:37:52Z","closed_at":"2015-05-13T12:37:52Z","body":"Links to `//domain.tld/` are quite common to deal with http/https protocol. They should be expanded to `http://domain.tld/` on http site or `https://domain.tld/` on https site.\r\n\r\n_pjs.toFullUrl() expand such links into `base//domain.tld/` which is of course wrong.\r\n\r\nSimple real world example: http://en.wikipedia.org/wiki/A\r\nCheck the footer for `//wikimediafoundation.org/` and `//www.mediawiki.org/` which are expanded to `http://en.wikipedia.org//wikimediafoundation.org/` and `http://en.wikipedia.org//www.mediawiki.org/`."}}