Remove slash

This commit is contained in:
James Cole 2023-08-23 07:04:47 +02:00
parent ba3e026927
commit 969e0bccc9
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -150,6 +150,9 @@ function getBaseUrl() {
if (bases.length > 0) {
baseHref = bases[0].href;
}
if (null !== baseHref && '/' === baseHref.slice(-1)) {
baseHref = baseHref.slice(0, -1);
}
console.log('baseHref for mass edit is "' + baseHref + '".');
return baseHref;
}