{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2227","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2227/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2227/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2227/events","html_url":"https://github.com/gatsbyjs/gatsby/pull/2227","id":260378097,"number":2227,"title":"Add support for client-side redirects in production","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},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-25T18:50:14Z","updated_at":"2017-09-26T16:57:29Z","closed_at":"2017-09-25T20:24:52Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/2227","html_url":"https://github.com/gatsbyjs/gatsby/pull/2227","diff_url":"https://github.com/gatsbyjs/gatsby/pull/2227.diff","patch_url":"https://github.com/gatsbyjs/gatsby/pull/2227.patch"},"body":"/cc @bvaughn\n\nThis PR also adds a flag to `createRedirect` \"redirectInBrowser\" which a user\nmust opt into for the redirect to be run in the browser. This is done as there\nare many scenarios where people building sites with Gatsby might have hundreds\nor thousands of redirects from legacy versions of the site, none of which\nwe'd want loaded into the browser."},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/332265053","html_url":"https://github.com/gatsbyjs/gatsby/pull/2227#issuecomment-332265053","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2227","id":332265053,"user":{"login":"bvaughn","id":29597,"avatar_url":"https://avatars0.githubusercontent.com/u/29597?v=4","gravatar_id":"","url":"https://api.github.com/users/bvaughn","html_url":"https://github.com/bvaughn","followers_url":"https://api.github.com/users/bvaughn/followers","following_url":"https://api.github.com/users/bvaughn/following{/other_user}","gists_url":"https://api.github.com/users/bvaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvaughn/subscriptions","organizations_url":"https://api.github.com/users/bvaughn/orgs","repos_url":"https://api.github.com/users/bvaughn/repos","events_url":"https://api.github.com/users/bvaughn/events{/privacy}","received_events_url":"https://api.github.com/users/bvaughn/received_events","type":"User","site_admin":false},"created_at":"2017-09-26T16:57:29Z","updated_at":"2017-09-26T16:57:29Z","author_association":"CONTRIBUTOR","body":"FYI, I updated the React site to `gatsby@1.9.44` and changing our `gatsby-node.js` to:\r\n```js\r\n// Blog landing page should always show the most recent blog entry.\r\ncreateRedirect({\r\n  fromPath: '/blog/',\r\n  redirectInBrowser: true,\r\n  toPath: newestBlogNode.fields.slug,\r\n});\r\n```\r\n\r\nWorks like a charm 😄  Thanks!"}}
{"actor":{"display_login":"bvaughn"}}