{"action":"created","issue":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1301","labels_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1301/labels{/name}","comments_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1301/comments","events_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1301/events","html_url":"https://github.com/rejectedsoftware/vibe.d/pull/1301","id":112536074,"number":1301,"title":"Add HTTPServerRequest.routerRootDir property","user":{"login":"Yoplitein","id":4528762,"avatar_url":"https://avatars.githubusercontent.com/u/4528762?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoplitein","html_url":"https://github.com/Yoplitein","followers_url":"https://api.github.com/users/Yoplitein/followers","following_url":"https://api.github.com/users/Yoplitein/following{/other_user}","gists_url":"https://api.github.com/users/Yoplitein/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoplitein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoplitein/subscriptions","organizations_url":"https://api.github.com/users/Yoplitein/orgs","repos_url":"https://api.github.com/users/Yoplitein/repos","events_url":"https://api.github.com/users/Yoplitein/events{/privacy}","received_events_url":"https://api.github.com/users/Yoplitein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-21T08:31:29Z","updated_at":"2015-11-09T09:17:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/pulls/1301","html_url":"https://github.com/rejectedsoftware/vibe.d/pull/1301","diff_url":"https://github.com/rejectedsoftware/vibe.d/pull/1301.diff","patch_url":"https://github.com/rejectedsoftware/vibe.d/pull/1301.patch"},"body":"This allows for emitting the correct path when using a URLRouter with a prefix.\r\n\r\nConsider the index of a router with prefix \"/a/deep/path\" which renders:\r\n```jade\r\na(href=\"#{req.rootDir}\") rootDir\r\na(href=\"#{req.routerRootDir}\") routerRootDir\r\n```\r\nThe following is output:\r\n```html\r\n<a href=\"../../../\">rootDir</a>\r\n<a href=\"../../../a/deep/path/\">routerRootDir</a>\r\n```"},"comment":{"url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/comments/155003946","html_url":"https://github.com/rejectedsoftware/vibe.d/pull/1301#issuecomment-155003946","issue_url":"https://api.github.com/repos/rejectedsoftware/vibe.d/issues/1301","id":155003946,"user":{"login":"s-ludwig","id":1645969,"avatar_url":"https://avatars.githubusercontent.com/u/1645969?v=3","gravatar_id":"","url":"https://api.github.com/users/s-ludwig","html_url":"https://github.com/s-ludwig","followers_url":"https://api.github.com/users/s-ludwig/followers","following_url":"https://api.github.com/users/s-ludwig/following{/other_user}","gists_url":"https://api.github.com/users/s-ludwig/gists{/gist_id}","starred_url":"https://api.github.com/users/s-ludwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-ludwig/subscriptions","organizations_url":"https://api.github.com/users/s-ludwig/orgs","repos_url":"https://api.github.com/users/s-ludwig/repos","events_url":"https://api.github.com/users/s-ludwig/events{/privacy}","received_events_url":"https://api.github.com/users/s-ludwig/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T09:17:15Z","updated_at":"2015-11-09T09:17:15Z","body":"Thanks, looks good."}}