title: Push a route (Moving from vueJS to nuxtJS)
body: <p>I am converting a VueJS project to Nuxt.js and I have a problem understanding how nuxt handles routing. Its documentation doesn't say anything about Pushing a route.</p>
  
  <p>Using VueJS I have the following in a component.</p>
  
  <pre><code> //template
   &lt;input class="" type="search"
          name="q" id="q" v-model="q"
          @keyup.enter="submitSearch"
   &gt;
   //script
    methods: {
          submitSearch() {
              this.$route.push({name: 'search', query: {q: this.q}});
  
              //also tried the following
              //nuxt.$router.push({name: 'search', query: {q: this.q}});
  
          }
      }
  </code></pre>
  
  <p>But this doesn't do a thing in Nuxt. Putting an alert('hi); inside the submitSearch fires fine but I am never redirected to the route.</p>
  
  <p>The goal here is when the user presses enter in the searchbar, to be redirected to /search?q=blablabla</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>The problem is that the user is redirected to <code>/?q=blablabla</code> instead of <code>/search?</code>..</p>
  
  <p>I just realized that this is because there are different names for multilingual routes.</p>
  
  <p>How am I going to push to a route name that instead of '<code>search</code>' is named <code>search__en</code> dynamically?</p>