{"action":"created","issue":{"url":"https://api.github.com/repos/funkhaus/vuepress/issues/94","repository_url":"https://api.github.com/repos/funkhaus/vuepress","labels_url":"https://api.github.com/repos/funkhaus/vuepress/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/funkhaus/vuepress/issues/94/comments","events_url":"https://api.github.com/repos/funkhaus/vuepress/issues/94/events","html_url":"https://github.com/funkhaus/vuepress/issues/94","id":311544934,"number":94,"title":"Cache Crawler 404","user":{"login":"mrfrancescomoro","id":2639793,"avatar_url":"https://avatars1.githubusercontent.com/u/2639793?v=4","gravatar_id":"","url":"https://api.github.com/users/mrfrancescomoro","html_url":"https://github.com/mrfrancescomoro","followers_url":"https://api.github.com/users/mrfrancescomoro/followers","following_url":"https://api.github.com/users/mrfrancescomoro/following{/other_user}","gists_url":"https://api.github.com/users/mrfrancescomoro/gists{/gist_id}","starred_url":"https://api.github.com/users/mrfrancescomoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrfrancescomoro/subscriptions","organizations_url":"https://api.github.com/users/mrfrancescomoro/orgs","repos_url":"https://api.github.com/users/mrfrancescomoro/repos","events_url":"https://api.github.com/users/mrfrancescomoro/events{/privacy}","received_events_url":"https://api.github.com/users/mrfrancescomoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-05T09:55:57Z","updated_at":"2018-04-05T15:02:51Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI'm having trouble with the instructions on the wiki, I don't know if I'm doing it wrong or there's actually a bug.\r\n\r\nAfter the AboutUs template part of the wiki I get this error:\r\n![image](https://user-images.githubusercontent.com/2639793/38359281-2e417f30-38c8-11e8-9232-40f62779d008.png)\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/funkhaus/vuepress/issues/comments/378967668","html_url":"https://github.com/funkhaus/vuepress/issues/94#issuecomment-378967668","issue_url":"https://api.github.com/repos/funkhaus/vuepress/issues/94","id":378967668,"user":{"login":"johndigital","id":6475336,"avatar_url":"https://avatars0.githubusercontent.com/u/6475336?v=4","gravatar_id":"","url":"https://api.github.com/users/johndigital","html_url":"https://github.com/johndigital","followers_url":"https://api.github.com/users/johndigital/followers","following_url":"https://api.github.com/users/johndigital/following{/other_user}","gists_url":"https://api.github.com/users/johndigital/gists{/gist_id}","starred_url":"https://api.github.com/users/johndigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndigital/subscriptions","organizations_url":"https://api.github.com/users/johndigital/orgs","repos_url":"https://api.github.com/users/johndigital/repos","events_url":"https://api.github.com/users/johndigital/events{/privacy}","received_events_url":"https://api.github.com/users/johndigital/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T15:02:51Z","updated_at":"2018-04-05T15:02:51Z","author_association":"OWNER","body":"Hmm, I think there's actually a simpler fix here. In order to generate those relative URLs we are just taking the permalink of the page and stripping out the Wordpress \"[siteurl](https://codex.wordpress.org/Function_Reference/site_url)\". The problem is that we need to be stripping out only the domain rather than the whole siteurl because in @mrfrancescomoro's case he has siteurl set to include the `/amt` which of course is a perfectly valid way to configure Wordpress just not something we took into account.\r\n\r\nSo what we need to do is take [this function](https://github.com/funkhaus/Rest-Easy/blob/b442ef1bd8dcd16d5be6730058b90cdfa1014dc6/utils.php#L6) and modify it so that only the domain is removed. If the siteurl is set to `http://example.com/some` and you feed that function the URL `http://example.com/some/url` it should return `/some/url`\r\n\r\nNot sure what the most Wordpress friendly was is to get only the domain, but that should fix it.\r\n\r\n"}}
{"actor":{"display_login":"johndigital"}}