{"action":"created","issue":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/2825","repository_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki","labels_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/2825/labels{/name}","comments_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/2825/comments","events_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/2825/events","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/2825","id":273216952,"number":2825,"title":"Regression: relative urls get http:// prepended","user":{"login":"WolfgangFahl","id":1336221,"avatar_url":"https://avatars0.githubusercontent.com/u/1336221?v=4","gravatar_id":"","url":"https://api.github.com/users/WolfgangFahl","html_url":"https://github.com/WolfgangFahl","followers_url":"https://api.github.com/users/WolfgangFahl/followers","following_url":"https://api.github.com/users/WolfgangFahl/following{/other_user}","gists_url":"https://api.github.com/users/WolfgangFahl/gists{/gist_id}","starred_url":"https://api.github.com/users/WolfgangFahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WolfgangFahl/subscriptions","organizations_url":"https://api.github.com/users/WolfgangFahl/orgs","repos_url":"https://api.github.com/users/WolfgangFahl/repos","events_url":"https://api.github.com/users/WolfgangFahl/events{/privacy}","received_events_url":"https://api.github.com/users/WolfgangFahl/received_events","type":"User","site_admin":false},"labels":[{"id":63816670,"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-12T09:55:15Z","updated_at":"2017-11-12T19:52:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following wiki markup:\r\n```\r\n{{#set:\r\nhas url=/w/images/2/2e/SMWConFall2017Logo.png\r\n}}\r\n{{#show: {{FULLPAGENAME}}|? has url}}\r\n\r\n```\r\nwill lead to \r\nhttp://w/images/2/2e/SMWConFall2017Logo.png\r\nbe shown instead of keeping the relative URL which would work.\r\n\r\nThis is IMHO a regression to the old behavior where the relative URL would stay intact.\r\n\r\nIn my wikifarm hundreds of links are now broken so I'd appreciate a hotfix or patch advice.\r\n\r\nSee https://www.semantic-mediawiki.org/wiki/User:WolfgangFahl/Workdocumentation_2017-11-12\r\n"},"comment":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/comments/343762359","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/2825#issuecomment-343762359","issue_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/2825","id":343762359,"user":{"login":"mwjames","id":1245473,"avatar_url":"https://avatars1.githubusercontent.com/u/1245473?v=4","gravatar_id":"","url":"https://api.github.com/users/mwjames","html_url":"https://github.com/mwjames","followers_url":"https://api.github.com/users/mwjames/followers","following_url":"https://api.github.com/users/mwjames/following{/other_user}","gists_url":"https://api.github.com/users/mwjames/gists{/gist_id}","starred_url":"https://api.github.com/users/mwjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwjames/subscriptions","organizations_url":"https://api.github.com/users/mwjames/orgs","repos_url":"https://api.github.com/users/mwjames/repos","events_url":"https://api.github.com/users/mwjames/events{/privacy}","received_events_url":"https://api.github.com/users/mwjames/received_events","type":"User","site_admin":false},"created_at":"2017-11-12T19:52:44Z","updated_at":"2017-11-12T19:52:44Z","author_association":"CONTRIBUTOR","body":"I took the time to find an old MediaWiki with:\r\n\r\n![image](https://user-images.githubusercontent.com/1245473/32702718-489410d8-c82e-11e7-8408-c98341c9d497.png)\r\n\r\nand for your example it produces the same result (aka expected result) as on 2.5+ and 3.+:\r\n\r\n![image](https://user-images.githubusercontent.com/1245473/32702668-85e57f04-c82d-11e7-83e8-424b43a6567e.png)\r\n\r\n![image](https://user-images.githubusercontent.com/1245473/32702664-6656308e-c82d-11e7-9f60-1ddc5e75784e.png)\r\n\r\n![image](https://user-images.githubusercontent.com/1245473/32702678-9c67a81a-c82d-11e7-8086-54bc2fb49370.png)\r\n\r\nWe always prepend an URL type with a protocol and I cannot recall that SMW ever supported protocol relative URIs.\r\n\r\n"}}
{"actor":{"display_login":"mwjames"}}