{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2026","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2026/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2026/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2026/events","html_url":"https://github.com/angular-ui/ui-router/issues/2026","id":86724302,"number":2026,"title":"uiSref (ui-sref) does not allow for query params to be removed from self-referenced states","user":{"login":"chanced","id":1073892,"avatar_url":"https://avatars.githubusercontent.com/u/1073892?v=3","gravatar_id":"","url":"https://api.github.com/users/chanced","html_url":"https://github.com/chanced","followers_url":"https://api.github.com/users/chanced/followers","following_url":"https://api.github.com/users/chanced/following{/other_user}","gists_url":"https://api.github.com/users/chanced/gists{/gist_id}","starred_url":"https://api.github.com/users/chanced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanced/subscriptions","organizations_url":"https://api.github.com/users/chanced/orgs","repos_url":"https://api.github.com/users/chanced/repos","events_url":"https://api.github.com/users/chanced/events{/privacy}","received_events_url":"https://api.github.com/users/chanced/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-09T20:21:51Z","updated_at":"2015-06-10T19:22:08Z","closed_at":null,"body":"I need to be able to add / remove query params, like toggle switches, via links. I can easily add or change query params with **uiSref** using ```<a ui-sref=\"{paramName: newParamVal}\">...</a>```. Removing query parameters seems to be challenging though. \r\n\r\nI understand why, in a situation where you have *paramA* and *paramB* and would like to remove *paramB* by omitting it from the params collection using  ```<a ui-sref=\"{paramA: val}\">...</a>```, would leave *paramB* intact. \r\n\r\nHowever, I think if you specify a path and pass in the query params as parameters then it should respect all query params provided. For example, ```<a ui-sref=\".({paramA: a})\">...</a>```, in my opinion, should link to ```currentState?paramA=a``` rather than ```currentState?paramA=a&paramB=b```.\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/110884507","html_url":"https://github.com/angular-ui/ui-router/issues/2026#issuecomment-110884507","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2026","id":110884507,"user":{"login":"nateabele","id":18288,"avatar_url":"https://avatars.githubusercontent.com/u/18288?v=3","gravatar_id":"","url":"https://api.github.com/users/nateabele","html_url":"https://github.com/nateabele","followers_url":"https://api.github.com/users/nateabele/followers","following_url":"https://api.github.com/users/nateabele/following{/other_user}","gists_url":"https://api.github.com/users/nateabele/gists{/gist_id}","starred_url":"https://api.github.com/users/nateabele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateabele/subscriptions","organizations_url":"https://api.github.com/users/nateabele/orgs","repos_url":"https://api.github.com/users/nateabele/repos","events_url":"https://api.github.com/users/nateabele/events{/privacy}","received_events_url":"https://api.github.com/users/nateabele/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T19:22:08Z","updated_at":"2015-06-10T19:22:08Z","body":"`inherit: false` doesn't work?"}}