mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 06:05:37 +07:00
Fixed URLSearchParams spaces (x sign) bug
See also https://gitlab.com/ClearURLs/ClearUrls/-/merge_requests/108
This commit is contained in:
@@ -152,7 +152,7 @@ function removeFieldsFormURL(provider, pureUrl, quiet = false, request = null) {
|
||||
|
||||
let finalURL = domain;
|
||||
|
||||
if (fields.toString() !== "") finalURL += "?" + fields.toString();
|
||||
if (fields.toString() !== "") finalURL += "?" + urlSearchParamsToString(fields);
|
||||
if (fragments.toString() !== "") finalURL += "#" + fragments.toString();
|
||||
|
||||
url = finalURL.replace(new RegExp("\\?&"), "?").replace(new RegExp("#&"), "#");
|
||||
|
||||
Reference in New Issue
Block a user