{"action":"opened","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/1104","labels_url":"https://api.github.com/repos/spf13/hugo/issues/1104/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/1104/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/1104/events","html_url":"https://github.com/spf13/hugo/issues/1104","id":73247763,"number":1104,"title":"Completely relative URLs?","user":{"login":"jbenet","id":138401,"avatar_url":"https://avatars.githubusercontent.com/u/138401?v=3","gravatar_id":"","url":"https://api.github.com/users/jbenet","html_url":"https://github.com/jbenet","followers_url":"https://api.github.com/users/jbenet/followers","following_url":"https://api.github.com/users/jbenet/following{/other_user}","gists_url":"https://api.github.com/users/jbenet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbenet/subscriptions","organizations_url":"https://api.github.com/users/jbenet/orgs","repos_url":"https://api.github.com/users/jbenet/repos","events_url":"https://api.github.com/users/jbenet/events{/privacy}","received_events_url":"https://api.github.com/users/jbenet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T08:32:52Z","updated_at":"2015-05-05T08:32:52Z","closed_at":null,"body":"Try as I might, I cannot figure out how to get hugo to stop making urls absolute, and use only relative urls. I've set:\r\n\r\n```\r\ncanonifyurls = false\r\n```\r\nin `config.toml` and removed the default baseurl directive. (The generated html files **do not** get a `<base>` html tag.) But hugo continues to make all urls relative.\r\n\r\n\r\nIf you need motivation (in case you ask \"why are you doing this?\"): many static website use cases _cannot predict_ what url they will be hosted at, and **MUST** work with _only_ relative urls. For example, a content addressed static host (say, using hash-trees to make the resulting hierarchy content addressed) would place the generated site at `<domain>/<base hash>/`. Obviously, the hugo site could know its hash a priori :)\r\n"}}