I current have a link as below in xyz page i.e.
#/xyz
:
<a href="#/abc/def?zqp=2&bqp=1">Random Text</a>
Upon clicking this I go to below url first
#/abc/def?zqp=2&bqp=1
And then the url changes to below url cause I believe ember-js takes in query params in alphbetical order
#/abc/def?bqp=1&zqp=2
Can you observe that order of query params has changed from
zqp=2&bqp=1 to bqp=1&zqp=2
I believe this is because ember js takes the query param as per alphabetical order
Now in bqp=1&zqp=2
when I press back I dont go to xyz instead I go zqp=2&bqp=1
with an error saying undefined route.
How to prevent this apart from re-ordering the query-params?
Note: I have not used ember link-to but have the href of link tag set directly. Cannot change this to link-to btw.