{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1287","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1287/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1287/events","html_url":"https://github.com/rackt/react-router/issues/1287","id":87257746,"number":1287,"title":"how to get previous path using Link ","user":{"login":"otarim","id":2024477,"avatar_url":"https://avatars.githubusercontent.com/u/2024477?v=3","gravatar_id":"","url":"https://api.github.com/users/otarim","html_url":"https://github.com/otarim","followers_url":"https://api.github.com/users/otarim/followers","following_url":"https://api.github.com/users/otarim/following{/other_user}","gists_url":"https://api.github.com/users/otarim/gists{/gist_id}","starred_url":"https://api.github.com/users/otarim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otarim/subscriptions","organizations_url":"https://api.github.com/users/otarim/orgs","repos_url":"https://api.github.com/users/otarim/repos","events_url":"https://api.github.com/users/otarim/events{/privacy}","received_events_url":"https://api.github.com/users/otarim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T08:22:42Z","updated_at":"2015-06-15T03:45:46Z","closed_at":null,"body":"sorry for my poor English..my question is,when i use `<Link />` to change current route into next route,how i can  get  previous path in the next route's handler? here is some code\r\n\r\n\t// route config \r\n\t<Route handler={Route2} name=\"route2\" path=\"route2\" />\r\n\r\n\t// eg: current location is #/route1?key=value\r\n\t<Link to=\"route2\">click to jump to route2</Link>\r\n\r\n\t// route2\r\n\tvar Route2 = React.createClass({\r\n\t\tcomponentDidMount: function() {\r\n\t\t\t// how i can get previous path '#/route1?key=value'\r\n\t\t},\r\n\t\trender: function() {\r\n\t\t\treturn (\r\n\t\t\t\t<div />\r\n\t\t\t)\r\n\t\t}\r\n\t})\r\n\r\nthx ~ :-)"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/111911908","html_url":"https://github.com/rackt/react-router/issues/1287#issuecomment-111911908","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1287","id":111911908,"user":{"login":"ryanflorence","id":100200,"avatar_url":"https://avatars.githubusercontent.com/u/100200?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflorence","html_url":"https://github.com/ryanflorence","followers_url":"https://api.github.com/users/ryanflorence/followers","following_url":"https://api.github.com/users/ryanflorence/following{/other_user}","gists_url":"https://api.github.com/users/ryanflorence/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflorence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflorence/subscriptions","organizations_url":"https://api.github.com/users/ryanflorence/orgs","repos_url":"https://api.github.com/users/ryanflorence/repos","events_url":"https://api.github.com/users/ryanflorence/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflorence/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T03:45:45Z","updated_at":"2015-06-15T03:45:45Z","body":"we should probably add `location.referrer`, but right now there's no way to know this.\r\n\r\nyou could set up your own `hashchange` listener and store your own stack of urls."}}