title: How do I change query parameters in Ember?
body: <p>I'm writing an action handler in <code>route:application</code>:</p>
  
  <pre><code>actions: {
    changeFoo(foo) {
      // I want to change the fooId queryParam to foo.get('id')
    }
  }
  </code></pre>
  
  <p>The problem is that the only documented ways I can find to change the query params are <code>transitionTo('some.route', someModel, { queryParams: { ... } }</code> and the <code>replaceWith</code> version of the same. But I'm in <code>route:application</code>, so I don't know the current route's name. That means I don't know what the first argument to <code>transitionTo</code> would be.</p>
  
  <p>Is there another way to get the URL to become <code>?fooId=123</code>?</p>