Improved special character handling in manticore and URL query.

This commit is contained in:
2024-04-01 01:50:24 +02:00
parent 56e9d07b85
commit 6f371499d3
7 changed files with 21 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ export default function navigate(path, query, options = {}) {
}).toString();
const url = queryString
? `${path}?${encodeURI(decodeURIComponent(queryString))}` // URLSearchParams encodes commas, we don't want that
? `${path}?${queryString.replace(/%2C/g, ',')}` // URLSearchParams encodes commas, we don't want that
: path;
if (options.redirect) {