{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1066","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1066/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1066/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1066/events","html_url":"https://github.com/rackt/react-router/issues/1066","id":67828904,"number":1066,"title":"How to get previous path?","user":{"login":"kjs3","id":91996,"avatar_url":"https://avatars.githubusercontent.com/u/91996?v=3","gravatar_id":"","url":"https://api.github.com/users/kjs3","html_url":"https://github.com/kjs3","followers_url":"https://api.github.com/users/kjs3/followers","following_url":"https://api.github.com/users/kjs3/following{/other_user}","gists_url":"https://api.github.com/users/kjs3/gists{/gist_id}","starred_url":"https://api.github.com/users/kjs3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjs3/subscriptions","organizations_url":"https://api.github.com/users/kjs3/orgs","repos_url":"https://api.github.com/users/kjs3/repos","events_url":"https://api.github.com/users/kjs3/events{/privacy}","received_events_url":"https://api.github.com/users/kjs3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-11T20:12:20Z","updated_at":"2015-09-10T03:24:12Z","closed_at":"2015-06-17T04:01:07Z","body":"When rendering a component I'd like to conditionally render a back button depending on what route they came from. If they copy/paste the url into another window, thereby having no history, don't render.\r\n\r\nHTML5 History doesn't give any ability to inspect the previous path which seems the same as the goBack() method. \r\n\r\nIs this history available in the context somewhere I'm not seeing?"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/139104660","html_url":"https://github.com/rackt/react-router/issues/1066#issuecomment-139104660","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1066","id":139104660,"user":{"login":"mgreer","id":643930,"avatar_url":"https://avatars.githubusercontent.com/u/643930?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreer","html_url":"https://github.com/mgreer","followers_url":"https://api.github.com/users/mgreer/followers","following_url":"https://api.github.com/users/mgreer/following{/other_user}","gists_url":"https://api.github.com/users/mgreer/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreer/subscriptions","organizations_url":"https://api.github.com/users/mgreer/orgs","repos_url":"https://api.github.com/users/mgreer/repos","events_url":"https://api.github.com/users/mgreer/events{/privacy}","received_events_url":"https://api.github.com/users/mgreer/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T03:24:12Z","updated_at":"2015-09-10T03:24:12Z","body":"How would one do this in 1.0.0beta4, since router.run is gone?"}}