-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing test to demonstrate query params bug #16986
Conversation
If there's: 1. a dynamic segment 2. a loading template 3. a route with a model hook that returns a promise 4. a query param defined then the query param is not sticky on link-tos Possibly related to emberjs#12107
Maybe it's related bug - #14438 |
@lifeart ooh interesting, yes the conditions to trigger the bug do appear to be suspiciously similar |
Hi! I'm the author of #14438, which was from 2016. I've just ran into the issue described here, and my setup is much simpler than in #14438. We have a single query param in the whole app, some dynamic segments and no loading routes. The query param is defined on a parent controller |
Hmm, in our case we make the via an action. Not sure if it matters. |
I just checked if tildeio/router.js#308 fixes your test case and it seems to work! Can someone else confirm it too? |
Refs: Based off reproduction in emberjs#16986
If there's:
then the query param is not sticky on
link-to
sPossibly related to #12107
Twiddle demonstrating the issue: https://ember-twiddle.com/97f2c3d7596c97d51846033ad23d75f2