I current have a link as below in xyz page i.e. #/xyz:
<a href="#/abc/def?zqp=2&bpq=1">Random Text</a>
Upon clicking this I go to
#/abc/def?bqp=1&zqp=2
Can you observe that order of query params has changed from
zqp=2&bpq=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&bpq=1 with an error saying undefined route.
How to prevent this apart from re-ordering the query-params?
Aucun commentaire:
Enregistrer un commentaire