trim url trailing slashes
This commit is contained in:
parent
550af91030
commit
8f59c4a236
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue