Remove trailing slashes from vocabulary links delivered as URLs

This commit is contained in:
2023-12-01 16:45:49 +01:00
parent dcfba67422
commit 7912066f71
2 changed files with 2 additions and 1 deletions

View File

@ -330,7 +330,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
foreach ($prefixes as $prefix) {
$toRemove[$prefix] = "";
}
$id = strtr($id, $toRemove);
$id = trim(strtr($id, $toRemove), '/');
}
if (!self::_is_numeric($id)) {