{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/http_server/issues/28","labels_url":"https://api.github.com/repos/dart-lang/http_server/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/http_server/issues/28/comments","events_url":"https://api.github.com/repos/dart-lang/http_server/issues/28/events","html_url":"https://github.com/dart-lang/http_server/issues/28","id":85648292,"number":28,"title":"http_server VirtualDirectory broken links","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/http_server/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dart-lang/http_server/labels/Fixed","name":"Fixed","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"skabet","id":22043,"avatar_url":"https://avatars.githubusercontent.com/u/22043?v=3","gravatar_id":"","url":"https://api.github.com/users/skabet","html_url":"https://github.com/skabet","followers_url":"https://api.github.com/users/skabet/followers","following_url":"https://api.github.com/users/skabet/following{/other_user}","gists_url":"https://api.github.com/users/skabet/gists{/gist_id}","starred_url":"https://api.github.com/users/skabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skabet/subscriptions","organizations_url":"https://api.github.com/users/skabet/orgs","repos_url":"https://api.github.com/users/skabet/repos","events_url":"https://api.github.com/users/skabet/events{/privacy}","received_events_url":"https://api.github.com/users/skabet/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-05T22:32:47Z","updated_at":"2015-06-05T22:32:47Z","closed_at":null,"body":"_Originally opened as dart-lang/sdk#19717_\n\n*This issue was originally filed by [conner127e@gmail.com](https://github.com/search?q=conner127e%40gmail.com&type=Users)*\n_____\n**What steps will reproduce the problem?**\nHttpServer.bind('127.0.0.1', 8080).then((HttpServer server)\n&nbsp;&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var virtualDirectory = new VirtualDirectory('path_to_root_dir');\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;virtualDirectory.allowDirectoryListing = true;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;virtualDirectory.serve(server);\n&nbsp;&nbsp;&nbsp;});\n\nThen navigate to a folder being hosted on your server. Every link to folders and files will be broken.\n\n**What is the expected output? What do you see instead?**\nThe entire path gets appended to every link in the directory listing. So localhost/folder/folder2/file.txt would be localhost/folder/folder2/\\folder/\\folder2/\\file.txt which is an invalid link. Notice the unncessary backslashes as well. The '../' link to go up a directory doesn't work either. This didn't happen in 0.9.0, so change to 0.9.2 must've broken it.\n\n**What version of the product are you using? On what operating system?**\nhttp_server 0.9.2+1\ndart 1.5.1\nWindows 8.1"}}