Revert "Refactor ID extraction logic in BuerklinProvider"

This reverts commit 5f65176636.
This commit is contained in:
Marc Kreidler 2026-02-10 14:41:08 +01:00
parent 22939d9f04
commit 66c2787e3c

View file

@ -661,13 +661,10 @@ class BuerklinProvider implements BatchInfoProviderInterface, URLHandlerInfoProv
if (strpos($path, '/p/') === false) {
return null;
}
// Reject "/.../p" and "/.../p/" (no actual ID)
if ($id === 'p' || $id === '') {
return null;
}
return $id;
$id = basename(rtrim($path, '/'));
return $id !== '' ? $id : null;
}
}