Remove trailing slashes from vocabulary links delivered as URLs

This commit is contained in:
jrenslin committed 2023-12-01 16:45:49 +01:00
1 parent dcfba67422
commit 7912066f71
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -330,7 +330,7 @@ private static function validateNumericId(string $id, array $prefixes):string|fa
foreach ($prefixes as $prefix) {
$toRemove[$prefix] = "";
}
$id = strtr($id, $toRemove);
$id = trim(strtr($id, $toRemove), '/');
}
if (!self::_is_numeric($id)) {