Skip to content

Commit 64f33db

Browse files
committedJan 23, 2025·
bug #6760 Fix an edge-cse with pretty URLs and multiple dashboards (javiereguiluz)
This PR was merged into the 4.x branch. Discussion ---------- Fix an edge-cse with pretty URLs and multiple dashboards Fixes #6603. Commits ------- e6137ef Fix an edge-cse with pretty URLs and multiple dashboards
2 parents d9320f8 + e6137ef commit 64f33db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Router/AdminUrlGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function generateUrl(): string
293293
}
294294

295295
if ($usePrettyUrls) {
296-
$dashboardControllerFqcn = $this->get(EA::DASHBOARD_CONTROLLER_FQCN) ?? $context?->getRequest()->attributes->get(EA::DASHBOARD_CONTROLLER_FQCN) ?? $this->dashboardControllerRegistry->getFirstDashboardFqcn();
296+
$dashboardControllerFqcn = $this->get(EA::DASHBOARD_CONTROLLER_FQCN) ?? $context?->getRequest()->attributes->get(EA::DASHBOARD_CONTROLLER_FQCN) ?? $context?->getDashboardControllerFqcn() ?? $this->dashboardControllerRegistry->getFirstDashboardFqcn();
297297
$crudControllerFqcn = $this->get(EA::CRUD_CONTROLLER_FQCN) ?? $context?->getRequest()->attributes->get(EA::CRUD_CONTROLLER_FQCN);
298298
$actionName = $this->get(EA::CRUD_ACTION) ?? $context?->getRequest()->attributes->get(EA::CRUD_ACTION);
299299

0 commit comments

Comments
 (0)
Please sign in to comment.