{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3124","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3124/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3124/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3124/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/3124","id":278853415,"number":3124,"title":"[gatsby-remark-code-repls and gatsby-remark-images] Doesn't listen to pathPrefix","user":{"login":"Swizec","id":56883,"avatar_url":"https://avatars0.githubusercontent.com/u/56883?v=4","gravatar_id":"","url":"https://api.github.com/users/Swizec","html_url":"https://github.com/Swizec","followers_url":"https://api.github.com/users/Swizec/followers","following_url":"https://api.github.com/users/Swizec/following{/other_user}","gists_url":"https://api.github.com/users/Swizec/gists{/gist_id}","starred_url":"https://api.github.com/users/Swizec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swizec/subscriptions","organizations_url":"https://api.github.com/users/Swizec/orgs","repos_url":"https://api.github.com/users/Swizec/repos","events_url":"https://api.github.com/users/Swizec/events{/privacy}","received_events_url":"https://api.github.com/users/Swizec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-04T02:40:36Z","updated_at":"2017-12-04T02:57:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This is a bug.\r\n\r\nI'm using Gatsby to build for gh-pages where sites have a path prefix. For example [on my workshop page](https://swizec.github.io/intro-to-react-workshop/2-your-first-component/#two-flavors-of-components)\r\n\r\nThat page is at `.../intro-to-react-workshop/` which works fine for the most part.\r\n\r\nOne of the problems I've found is that `gatsby-remark-code-repls` works wonderfully in local development where I compile without prefixes. But when compiling for github with this command: \r\n\r\n```\r\nrm -rf .cache && rm -rf public && gatsby build --prefix-paths && gh-pages -d public\r\n```\r\n\r\nIt constructs incorrect links for Codepen redirects. \r\n\r\n```\r\nhttps://swizec.github.io/redirect-to-codepen/your-first-component/class-component\r\n```\r\n\r\nis put in the page. But it should be\r\n\r\n```\r\nhttps://swizec.github.io/intro-to-react-workshop/redirect-to-codepen/your-first-component/class-component\r\n```\r\n\r\n\r\ngatsby-remark-images experiences a similar problem, but only for gifs. It works for every other type of image, but gifs are always constructed without a path prefix, which leads to 404 errors."},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/348848232","html_url":"https://github.com/gatsbyjs/gatsby/issues/3124#issuecomment-348848232","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/3124","id":348848232,"user":{"login":"KyleAMathews","id":71047,"avatar_url":"https://avatars3.githubusercontent.com/u/71047?v=4","gravatar_id":"","url":"https://api.github.com/users/KyleAMathews","html_url":"https://github.com/KyleAMathews","followers_url":"https://api.github.com/users/KyleAMathews/followers","following_url":"https://api.github.com/users/KyleAMathews/following{/other_user}","gists_url":"https://api.github.com/users/KyleAMathews/gists{/gist_id}","starred_url":"https://api.github.com/users/KyleAMathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KyleAMathews/subscriptions","organizations_url":"https://api.github.com/users/KyleAMathews/orgs","repos_url":"https://api.github.com/users/KyleAMathews/repos","events_url":"https://api.github.com/users/KyleAMathews/events{/privacy}","received_events_url":"https://api.github.com/users/KyleAMathews/received_events","type":"User","site_admin":false},"created_at":"2017-12-04T02:57:15Z","updated_at":"2017-12-04T02:57:15Z","author_association":"CONTRIBUTOR","body":"Hmm yeah — sorry about that :-( \r\n\r\nWould you like to put together PRs for these?"}}
{"actor":{"display_login":"KyleAMathews"}}