Skip to content

Commit 9973af4

Browse files
committed
Prettify search filter URI
1 parent e3a886f commit 9973af4

File tree

1 file changed

+1
-1
lines changed
  • private/src/scripts/utils

1 file changed

+1
-1
lines changed

private/src/scripts/utils/url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const objectToQueryString = (object) =>
4545
val = objectToQueryString(object);
4646
}
4747

48-
return `${encodeURIComponent(prop)}=${encodeURIComponent(val).replace('%2C', ',')}`;
48+
return `${encodeURIComponent(prop)}=${encodeURIComponent(val).replace(/%2C/g, ',')}`;
4949
})
5050
.filter(Boolean)
5151
.join('&');

0 commit comments

Comments
 (0)