Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 603ee5f

Browse files
committed
Fix SonataEnhancer
1 parent ae3043b commit 603ee5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Description/SonataEnhancer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function enhance(Description $description)
7878
$admin->getIdParameter() => $admin->getUrlsafeIdentifier($object),
7979
], true);
8080

81-
$linkKey = trim($code, '.)');
81+
$linkKey = substr($code, strlen($admin->getCode()) + 1);
8282
if (array_key_exists($linkKey, self::$linkKeyMapping)) {
8383
$description->set(self::$linkKeyMapping[$linkKey], $url);
8484
}

0 commit comments

Comments
 (0)