Static GitHub Issues

[3286] watchQuery does not watch when trailing slash is present and the query param is not

prev: Use jquery error "jQuery requires a window with a document"!
next: Problem with mongoose

Version

2.0.0-25414361.b4a4a55 (likely before as well)(https://github.com/nuxt/nuxt.js/releases/tag/2.0.0-25414361.b4a4a55 (likely before as well))

Reproduction link

https://github.com/manniL/nuxt-watch-query-issue

Steps to reproduce

When using watchQuery, the watchers are not triggered when internally redirecting to an URL with trailing slash and without query string parameter set (eg to /query/)

  1. Clone the linked repo
  2. Install nuxt-edge (npm i)
  3. Run dev mode (npm run dev)
  4. Click on the links and push "forward"/"backward". Look at the URL and the received data.

What is expected ?

watchQuery watches as usual and calls async functions correctly.

What is actually happening?

watchQuery does not listen.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c7000">#c7000</a>)</em></sub></div>