We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a58fc91 commit dc24062Copy full SHA for dc24062
1 file changed
modules/RouteNode.js
@@ -204,7 +204,14 @@ export default class RouteNode {
204
205
const searchPart = !searchParams.length ? null : searchParams
206
.filter(p => Object.keys(params).indexOf(withoutBrackets(p)) !== -1)
207
- .map(p => Path.serialise(p, params[withoutBrackets(p)]))
+ .map(p => {
208
+ const val = params[withoutBrackets(p)];
209
+ const encodedVal = Array.isArray(val)
210
+ ? val.map(encodeURIComponent)
211
+ : encodeURIComponent(val);
212
+
213
+ return Path.serialise(p, encodedVal);
214
+ })
215
.join('&');
216
217
return segments
0 commit comments