{"action":"created","issue":{"url":"https://api.github.com/repos/met-office-lab/met-office-lab.github.io/issues/66","labels_url":"https://api.github.com/repos/met-office-lab/met-office-lab.github.io/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/met-office-lab/met-office-lab.github.io/issues/66/comments","events_url":"https://api.github.com/repos/met-office-lab/met-office-lab.github.io/issues/66/events","html_url":"https://github.com/met-office-lab/met-office-lab.github.io/issues/66","id":63206560,"number":66,"title":"Clean up relative paths and absolute paths with domain name","user":{"login":"jacobtomlinson","id":1610850,"avatar_url":"https://avatars.githubusercontent.com/u/1610850?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobtomlinson","html_url":"https://github.com/jacobtomlinson","followers_url":"https://api.github.com/users/jacobtomlinson/followers","following_url":"https://api.github.com/users/jacobtomlinson/following{/other_user}","gists_url":"https://api.github.com/users/jacobtomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobtomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobtomlinson/subscriptions","organizations_url":"https://api.github.com/users/jacobtomlinson/orgs","repos_url":"https://api.github.com/users/jacobtomlinson/repos","events_url":"https://api.github.com/users/jacobtomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/jacobtomlinson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/met-office-lab/met-office-lab.github.io/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-20T10:38:27Z","updated_at":"2015-03-20T13:35:05Z","closed_at":null,"body":"Just a little winge, I've noticed relative path urls knocking around in the blog. Relative paths are bad practice and not to mention [gross](https://yoast.com/relative-urls-issues/), we need to stop using them.\r\n\r\nWe do have some absolute paths but most of them seem to have the full domain name at the beginning, this is also bad and causes a different set of problems. The main problem being during link testing, when you specify an absolute url with the domain name you are basically pointing externally to the master branch of the blog. If you create a page locally on your own branch which links to itself the link will fail tests because the page doesn't exist on master yet.\r\n\r\nAll internal links on the blog should begin with a `/` which means you are starting at the root of the current website and is therefore a valid internal link. \r\n\r\n@niallrobinson @simonstanley @alberto-arribas "},"comment":{"url":"https://api.github.com/repos/met-office-lab/met-office-lab.github.io/issues/comments/84018428","html_url":"https://github.com/met-office-lab/met-office-lab.github.io/issues/66#issuecomment-84018428","issue_url":"https://api.github.com/repos/met-office-lab/met-office-lab.github.io/issues/66","id":84018428,"user":{"login":"niallrobinson","id":2979205,"avatar_url":"https://avatars.githubusercontent.com/u/2979205?v=3","gravatar_id":"","url":"https://api.github.com/users/niallrobinson","html_url":"https://github.com/niallrobinson","followers_url":"https://api.github.com/users/niallrobinson/followers","following_url":"https://api.github.com/users/niallrobinson/following{/other_user}","gists_url":"https://api.github.com/users/niallrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/niallrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niallrobinson/subscriptions","organizations_url":"https://api.github.com/users/niallrobinson/orgs","repos_url":"https://api.github.com/users/niallrobinson/repos","events_url":"https://api.github.com/users/niallrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/niallrobinson/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T13:35:05Z","updated_at":"2015-03-20T13:35:05Z","body":"thanks - we obviously had a miscommunication at some point, because I thought you had told me to use relative paths so that it didn't matter if it was running on a local server or on the website. It should be rendered moot anyway when we get going with an imagebucket / gravitar"}}