trim url trailing slashes

This commit is contained in:
Ben Phelps 2022-09-28 10:14:44 +03:00
parent 550af91030
commit 8f59c4a236

View file

@ -5,7 +5,7 @@ export function formatApiCall(url, args) {
return args[key];
};
return url.replace(find, replace);
return url.replace(/\/+$/, "").replace(find, replace);
}
function getURLSearchParams(widget, endpoint) {