Open
Description
I have ecommerce store with bunch of facets ( filters ). It's important for me to preserve the order in which user clicks facets.
If user clicks Brand -> Size -> Brand, it should be brandId=1&sizeId=234&brandId=34
.
It seems like URI.js is grouping query string attributes, so I get brandId=1&brandId=34&sizeId=234
, so I'm loosing correct clicks order.
Here is how to reproduce problem in code:
var uri = new URI("http://192.168.1.10:3000/search?company=1&height=182").addQuery("company", 9);
gives me
http://192.168.1.10:3000/search?company=1&company=9&height=182
( on click I was hoping to execute addQuery to append new query string to the end ).
Is there a way to remove attributes grouping with URI.js and always add to the end?