{"action":"closed","issue":{"url":"https://api.github.com/repos/hackmdio/hackmd/issues/42","labels_url":"https://api.github.com/repos/hackmdio/hackmd/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/hackmdio/hackmd/issues/42/comments","events_url":"https://api.github.com/repos/hackmdio/hackmd/issues/42/events","html_url":"https://github.com/hackmdio/hackmd/issues/42","id":116658392,"number":42,"title":"Wrong file paths in pretty.ejs","user":{"login":"janniklorenz","id":1284753,"avatar_url":"https://avatars.githubusercontent.com/u/1284753?v=3","gravatar_id":"","url":"https://api.github.com/users/janniklorenz","html_url":"https://github.com/janniklorenz","followers_url":"https://api.github.com/users/janniklorenz/followers","following_url":"https://api.github.com/users/janniklorenz/following{/other_user}","gists_url":"https://api.github.com/users/janniklorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/janniklorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janniklorenz/subscriptions","organizations_url":"https://api.github.com/users/janniklorenz/orgs","repos_url":"https://api.github.com/users/janniklorenz/repos","events_url":"https://api.github.com/users/janniklorenz/events{/privacy}","received_events_url":"https://api.github.com/users/janniklorenz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-12T22:42:29Z","updated_at":"2015-11-17T12:22:07Z","closed_at":"2015-11-17T12:22:07Z","body":"In `/public/views/pretty.ejs` almost all script paths are combined with the 'url' var to absolute paths\r\n\r\nFor example:\r\n```\r\n<link rel=\"stylesheet\" href='<%- url %>/css/site.css'>\r\n```\r\n\r\nThis makes some problems behind a proxy. \r\n\r\nIs there any reason, why absolute paths are needed here? The only one I could imagine would be to enable the possibility to embed the page on another webpage or in some download. \r\n\r\nAnd where ist this url taken form? It's not the `domain` or `getserverurl()`, which is defined in the config."}}