File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ var Path = {
133
133
var queryString = qs . stringify ( query , { indices : false } ) ;
134
134
135
135
if ( queryString )
136
- return Path . withoutQuery ( path ) + '?' + decodeURIComponent ( queryString ) ;
136
+ return Path . withoutQuery ( path ) + '?' + queryString ;
137
137
138
138
return path ;
139
139
} ,
Original file line number Diff line number Diff line change @@ -318,4 +318,8 @@ describe('Path.withQuery', function () {
318
318
it ( 'merges two query strings' , function ( ) {
319
319
expect ( Path . withQuery ( '/path?a=b' , { c : [ 'd' , 'e' ] } ) ) . toEqual ( '/path?a=b&c=d&c=e' ) ;
320
320
} ) ;
321
+
322
+ it ( 'handles special characters' , function ( ) {
323
+ expect ( Path . withQuery ( '/path?a=b' , { c : [ 'd#e' , 'f&a=i#j+k' ] } ) ) . toEqual ( '/path?a=b&c=d%23e&c=f%26a%3Di%23j%2Bk' ) ;
324
+ } ) ;
321
325
} ) ;
You can’t perform that action at this time.
0 commit comments