{"action":"created","issue":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/4059","repository_url":"https://api.github.com/repos/ReactTraining/react-router","labels_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4059/labels{/name}","comments_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4059/comments","events_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4059/events","html_url":"https://github.com/ReactTraining/react-router/issues/4059","id":183608247,"number":4059,"title":"history.push not working when using BrowserRouter","user":{"login":"SaurabhKshirsagar","id":22885250,"avatar_url":"https://avatars3.githubusercontent.com/u/22885250?v=3","gravatar_id":"","url":"https://api.github.com/users/SaurabhKshirsagar","html_url":"https://github.com/SaurabhKshirsagar","followers_url":"https://api.github.com/users/SaurabhKshirsagar/followers","following_url":"https://api.github.com/users/SaurabhKshirsagar/following{/other_user}","gists_url":"https://api.github.com/users/SaurabhKshirsagar/gists{/gist_id}","starred_url":"https://api.github.com/users/SaurabhKshirsagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaurabhKshirsagar/subscriptions","organizations_url":"https://api.github.com/users/SaurabhKshirsagar/orgs","repos_url":"https://api.github.com/users/SaurabhKshirsagar/repos","events_url":"https://api.github.com/users/SaurabhKshirsagar/events{/privacy}","received_events_url":"https://api.github.com/users/SaurabhKshirsagar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-18T07:20:41Z","updated_at":"2017-06-16T14:59:35Z","closed_at":"2016-10-18T14:34:46Z","body":"_**startup file**_\n\n```\nimport {BrowserRouter} from 'react-router';\nlet root=<BrowserRouter>\n                     //Some components\n              </BrowserRouter>\n ReactDOM.render(Root, document.getElementById(\"app\"))\n```\n\n_**function to navigate or route**_\n\n```\nimport createBrowserHistory from 'history lib createBrowserHistor';\nconst history = createBrowserHistory();\nlet browseTo=function(somepath){\n           history.push({pathname: somepath})\n})\n```\n\n**After calling above Function only URL path changing actual route is not perform.\nLike URL localhost:8080 changes to localhost:8080/login not routing to login component.**\n\n**_Also tried_**\n\n```\nimport { browserHistory } from './react-router'\nlet browseTo=function(somepath){\n          browserHistory.push('/some/path')\n}\n```\n\n**but have error browserHistory is undefined**\n\n**If i use `this.context.router.transitionTo('/Some/Path')` its working but it is not proper solution** \n"},"comment":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/comments/309049291","html_url":"https://github.com/ReactTraining/react-router/issues/4059#issuecomment-309049291","issue_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4059","id":309049291,"user":{"login":"dsslimshaddy","id":19769364,"avatar_url":"https://avatars1.githubusercontent.com/u/19769364?v=3","gravatar_id":"","url":"https://api.github.com/users/dsslimshaddy","html_url":"https://github.com/dsslimshaddy","followers_url":"https://api.github.com/users/dsslimshaddy/followers","following_url":"https://api.github.com/users/dsslimshaddy/following{/other_user}","gists_url":"https://api.github.com/users/dsslimshaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/dsslimshaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsslimshaddy/subscriptions","organizations_url":"https://api.github.com/users/dsslimshaddy/orgs","repos_url":"https://api.github.com/users/dsslimshaddy/repos","events_url":"https://api.github.com/users/dsslimshaddy/events{/privacy}","received_events_url":"https://api.github.com/users/dsslimshaddy/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T14:59:35Z","updated_at":"2017-06-16T14:59:35Z","body":"@razvantomegea you havent shown how you call `SignupPage`"}}
{"actor":{"display_login":"dsslimshaddy"}}