Saturday 25 August 2018

Query string problem

Hi, I have a route /quote/:id?sort=new this works fine. However on this page user can post coments I use ajax for that. The ajax post request goes to this url window.location.href + '/post' the problem is that the final url I get is /quote/:quoteId?sort=new/post. How can I move the query string to the end of the url? Or is there any better solution? Thanks I advance :)

Submitted August 25, 2018 at 01:28PM by everek123

No comments:

Post a Comment