{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/2180","labels_url":"https://api.github.com/repos/rackt/react-router/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/2180/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/2180/events","html_url":"https://github.com/rackt/react-router/issues/2180","id":110133192,"number":2180,"title":"getQuery returns incorrect values","user":{"login":"toddwildey","id":1860496,"avatar_url":"https://avatars.githubusercontent.com/u/1860496?v=3","gravatar_id":"","url":"https://api.github.com/users/toddwildey","html_url":"https://github.com/toddwildey","followers_url":"https://api.github.com/users/toddwildey/followers","following_url":"https://api.github.com/users/toddwildey/following{/other_user}","gists_url":"https://api.github.com/users/toddwildey/gists{/gist_id}","starred_url":"https://api.github.com/users/toddwildey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddwildey/subscriptions","organizations_url":"https://api.github.com/users/toddwildey/orgs","repos_url":"https://api.github.com/users/toddwildey/repos","events_url":"https://api.github.com/users/toddwildey/events{/privacy}","received_events_url":"https://api.github.com/users/toddwildey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rackt/react-router/labels/needs-help","name":"needs-help","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-07T01:06:21Z","updated_at":"2015-10-16T23:11:57Z","closed_at":null,"body":"I'm currently managing most of my state inside of query params in the URL.\r\n\r\n Whenever state change take place, I call\r\n```\r\nthis.replaceWith(this.getPathname(), this.getParams(), newQuery);\r\n```\r\n\r\nWhenever navigation takes place, I call\r\n```\r\nthis.transitionTo(childRoutePath, this.getParams(), this.getQuery());\r\n```\r\n\r\nIf I change the pagination state (i.e., current page) on a given page, navigate to another page, and then return to the original page, the current page will ALWAYS be corrupted.  If I don't change the pagination state, and repeat the rest of the process, the current page still becomes corrupted.  The URL will reflect the correct state before any navigation takes place.\r\n\r\nAs soon as \r\n```\r\nthis.transitionTo(childRoutePath, this.getParams(), this.getQuery());\r\n```\r\ngets called, the URL becomes corrupted.\r\n\r\nI'm using version 0.13 of react-router.  I've had issues getting the most recent version working, but I'll try again.\r\n\r\nAny help would be appreciated, but I'm pretty sure this is a bug."},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/148862815","html_url":"https://github.com/rackt/react-router/issues/2180#issuecomment-148862815","issue_url":"https://api.github.com/repos/rackt/react-router/issues/2180","id":148862815,"user":{"login":"taion","id":3112159,"avatar_url":"https://avatars.githubusercontent.com/u/3112159?v=3","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T23:11:57Z","updated_at":"2015-10-16T23:11:57Z","body":"It's still not clear what you're saying. In your example in https://github.com/rackt/react-router/issues/2180#issuecomment-146380262, what do you expect to happen, and what do you actually observe?"}}