From 397ad14cd897197ac3e22466a98c3c6df31a67dd Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Fri, 8 Aug 2025 17:21:30 +0300 Subject: [PATCH] Do not prefix the plugin name twice (#326) --- app/src/Controller/Component/BreadcrumbComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Controller/Component/BreadcrumbComponent.php b/app/src/Controller/Component/BreadcrumbComponent.php index 17e42d509..9bbe6bb91 100644 --- a/app/src/Controller/Component/BreadcrumbComponent.php +++ b/app/src/Controller/Component/BreadcrumbComponent.php @@ -185,7 +185,7 @@ public function injectPrimaryLink(object $link, bool $index=true, string $linkLa } $modelPath = $modelsName; - if(!empty($link->plugin)) { + if(!empty($link->plugin) && !str_starts_with($modelsName, $link->plugin . '.')) { // eg: "CoreEnroller.AttributeCollectors" $modelPath = $link->plugin . '.' . $modelsName; }