File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ var Path = {
144
144
if ( existingQuery )
145
145
query = query ? merge ( existingQuery , query ) : existingQuery ;
146
146
147
- var queryString = query && qs . stringify ( query ) ;
147
+ var queryString = qs . stringify ( query , { indices : false } ) ;
148
148
149
149
if ( queryString )
150
- return Path . withoutQuery ( path ) + '?' + queryString ;
150
+ return Path . withoutQuery ( path ) + '?' + decodeURIComponent ( queryString ) ;
151
151
152
152
return path ;
153
153
} ,
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ describe('Path.withQuery', function () {
322
322
} ) ;
323
323
324
324
it ( 'merges two query strings' , function ( ) {
325
- expect ( Path . withQuery ( '/path?a=b' , { c : [ 'd' , 'e' ] } ) ) . toEqual ( '/path?a=b&c%5B0%5D =d&c%5B1%5D =e' ) ;
325
+ expect ( Path . withQuery ( '/path?a=b' , { c : [ 'd' , 'e' ] } ) ) . toEqual ( '/path?a=b&c=d&c=e' ) ;
326
326
} ) ;
327
327
} ) ;
328
328
You can’t perform that action at this time.
0 commit comments