{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-router/issues/1841","repository_url":"https://api.github.com/repos/reactjs/react-router","labels_url":"https://api.github.com/repos/reactjs/react-router/issues/1841/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-router/issues/1841/comments","events_url":"https://api.github.com/repos/reactjs/react-router/issues/1841/events","html_url":"https://github.com/reactjs/react-router/issues/1841","id":105268946,"number":1841,"title":"Calling `transitionTo` fails with: 'location.search.substring is not a function'","user":{"login":"richardsabow","id":9129389,"avatar_url":"https://avatars.githubusercontent.com/u/9129389?v=3","gravatar_id":"","url":"https://api.github.com/users/richardsabow","html_url":"https://github.com/richardsabow","followers_url":"https://api.github.com/users/richardsabow/followers","following_url":"https://api.github.com/users/richardsabow/following{/other_user}","gists_url":"https://api.github.com/users/richardsabow/gists{/gist_id}","starred_url":"https://api.github.com/users/richardsabow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardsabow/subscriptions","organizations_url":"https://api.github.com/users/richardsabow/orgs","repos_url":"https://api.github.com/users/richardsabow/repos","events_url":"https://api.github.com/users/richardsabow/events{/privacy}","received_events_url":"https://api.github.com/users/richardsabow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-07T21:27:47Z","updated_at":"2016-05-02T03:11:58Z","closed_at":"2015-09-08T14:47:51Z","body":"When i call `this.props.history.transitionTo('/')` in a component on button click, i get the error message above. After that, this error occurs `Location \"/undefinedfunction search() { [native code] }\" did not match any routes`, because it tries to change location to `undefinedfunction search() { [native code] }`.\r\nI am using `react 0.13.3` and `react-router 1.0.0-beta4`. "},"comment":{"url":"https://api.github.com/repos/reactjs/react-router/issues/comments/216097467","html_url":"https://github.com/reactjs/react-router/issues/1841#issuecomment-216097467","issue_url":"https://api.github.com/repos/reactjs/react-router/issues/1841","id":216097467,"user":{"login":"robotvert","id":514215,"avatar_url":"https://avatars.githubusercontent.com/u/514215?v=3","gravatar_id":"","url":"https://api.github.com/users/robotvert","html_url":"https://github.com/robotvert","followers_url":"https://api.github.com/users/robotvert/followers","following_url":"https://api.github.com/users/robotvert/following{/other_user}","gists_url":"https://api.github.com/users/robotvert/gists{/gist_id}","starred_url":"https://api.github.com/users/robotvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotvert/subscriptions","organizations_url":"https://api.github.com/users/robotvert/orgs","repos_url":"https://api.github.com/users/robotvert/repos","events_url":"https://api.github.com/users/robotvert/events{/privacy}","received_events_url":"https://api.github.com/users/robotvert/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T03:11:58Z","updated_at":"2016-05-02T03:11:58Z","body":"@cabhishek have you read the comment from @chentsulin ? \r\nalso, you're referencing an issue closed more than half a year ago, about version 1.x when you're using version 2.x, there's a chance the given solution is not valid anymore."}}