Skip to content

Commit

Permalink
Do not prefix the plugin name twice (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis authored Aug 8, 2025
1 parent 7c37dcb commit 397ad14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Controller/Component/BreadcrumbComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 397ad14

Please sign in to comment.