{"action":"created","issue":{"url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/45","repository_url":"https://api.github.com/repos/hacdias/caddy-filemanager","labels_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/45/comments","events_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/45/events","html_url":"https://github.com/hacdias/caddy-filemanager/issues/45","id":187261881,"number":45,"title":"files links are generated with absolute path","user":{"login":"apremalal","id":1552748,"avatar_url":"https://avatars.githubusercontent.com/u/1552748?v=3","gravatar_id":"","url":"https://api.github.com/users/apremalal","html_url":"https://github.com/apremalal","followers_url":"https://api.github.com/users/apremalal/followers","following_url":"https://api.github.com/users/apremalal/following{/other_user}","gists_url":"https://api.github.com/users/apremalal/gists{/gist_id}","starred_url":"https://api.github.com/users/apremalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apremalal/subscriptions","organizations_url":"https://api.github.com/users/apremalal/orgs","repos_url":"https://api.github.com/users/apremalal/repos","events_url":"https://api.github.com/users/apremalal/events{/privacy}","received_events_url":"https://api.github.com/users/apremalal/received_events","type":"User","site_admin":false},"labels":[{"id":390658359,"url":"https://api.github.com/repos/hacdias/caddy-filemanager/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-04T06:21:31Z","updated_at":"2016-11-06T18:34:01Z","closed_at":"2016-11-06T11:31:14Z","body":"Hi Devs!,\r\n\r\nI got the following Caddyfile\r\n\r\n```\r\nlocalhost:8083/portal {\r\n    filemanager admin {\r\n        show           webapps/portals/\r\n        allow_new      true\r\n        allow_edit     true\r\n        allow_commands true\r\n        block          dotfiles\r\n    }\r\n    root  webapps/portals/\r\n    gzip\r\n    log    logs/caddyaccess.log\r\n}\r\n```\r\nTo get to the file manager I can visit` http:://localhost:8083/portal/admin`\r\n\r\nThen all the file manager links are generated as below\r\n/admin/file1.txt\r\n/admin/file2.txt\r\n\r\nI was expecting \r\n/portal/admin/file1.txt\r\n/portal/admin/file2.txt\r\n\r\nHave I misconfigured or is this not achievable? \r\n"},"comment":{"url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/comments/258700329","html_url":"https://github.com/hacdias/caddy-filemanager/issues/45#issuecomment-258700329","issue_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/45","id":258700329,"user":{"login":"hacdias","id":5447088,"avatar_url":"https://avatars.githubusercontent.com/u/5447088?v=3","gravatar_id":"","url":"https://api.github.com/users/hacdias","html_url":"https://github.com/hacdias","followers_url":"https://api.github.com/users/hacdias/followers","following_url":"https://api.github.com/users/hacdias/following{/other_user}","gists_url":"https://api.github.com/users/hacdias/gists{/gist_id}","starred_url":"https://api.github.com/users/hacdias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacdias/subscriptions","organizations_url":"https://api.github.com/users/hacdias/orgs","repos_url":"https://api.github.com/users/hacdias/repos","events_url":"https://api.github.com/users/hacdias/events{/privacy}","received_events_url":"https://api.github.com/users/hacdias/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T18:34:01Z","updated_at":"2016-11-06T18:34:01Z","body":"Sorry!"}}
{"actor":{"display_login":"hacdias"}}