{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/3017","repository_url":"https://api.github.com/repos/angular-ui/ui-router","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/3017/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/3017/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/3017/events","html_url":"https://github.com/angular-ui/ui-router/issues/3017","id":177861095,"number":3017,"title":"Option to remove hash in URL on state change.","user":{"login":"jeffrey-ng","id":1553313,"avatar_url":"https://avatars.githubusercontent.com/u/1553313?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffrey-ng","html_url":"https://github.com/jeffrey-ng","followers_url":"https://api.github.com/users/jeffrey-ng/followers","following_url":"https://api.github.com/users/jeffrey-ng/following{/other_user}","gists_url":"https://api.github.com/users/jeffrey-ng/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffrey-ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffrey-ng/subscriptions","organizations_url":"https://api.github.com/users/jeffrey-ng/orgs","repos_url":"https://api.github.com/users/jeffrey-ng/repos","events_url":"https://api.github.com/users/jeffrey-ng/events{/privacy}","received_events_url":"https://api.github.com/users/jeffrey-ng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T18:31:08Z","updated_at":"2016-09-19T20:43:10Z","closed_at":"2016-09-19T20:43:10Z","body":"Is there a way of removing the hash from the URL on state change?\r\n\r\nThere are some situations where the a hash value may be used on multiple pages and having it stay within the URL on stage change may cause some issues.\r\n\r\nExample: Going from ```https://example.com/page1#bottomsection``` to ```https://example.com/page2#bottomsection``` is undesired."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/248120045","html_url":"https://github.com/angular-ui/ui-router/issues/3017#issuecomment-248120045","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/3017","id":248120045,"user":{"login":"christopherthielen","id":2053478,"avatar_url":"https://avatars.githubusercontent.com/u/2053478?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherthielen","html_url":"https://github.com/christopherthielen","followers_url":"https://api.github.com/users/christopherthielen/followers","following_url":"https://api.github.com/users/christopherthielen/following{/other_user}","gists_url":"https://api.github.com/users/christopherthielen/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherthielen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherthielen/subscriptions","organizations_url":"https://api.github.com/users/christopherthielen/orgs","repos_url":"https://api.github.com/users/christopherthielen/repos","events_url":"https://api.github.com/users/christopherthielen/events{/privacy}","received_events_url":"https://api.github.com/users/christopherthielen/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T20:43:10Z","updated_at":"2016-09-19T20:43:10Z","body":"Hash is tracked using a parameter named '#'.\r\n\r\nYou can clear out the hash by clearing out that parameter:\r\n`$state.go('foo', { \"#\": undefined })`\r\n\r\nNote that browsers may keep the \"#\" in the URL even though it's empty.  See this comment: https://github.com/angular-ui/ui-router/issues/2900#issuecomment-239493266\r\n\r\nI think this answers the question, so closing."}}
{"actor":{"display_login":"christopherthielen"}}