Skip to content

Fix routes host#7541

Open
Guilain wants to merge 2 commits intoEasyCorp:4.xfrom
SylApps:fix-routes-host
Open

Fix routes host#7541
Guilain wants to merge 2 commits intoEasyCorp:4.xfrom
SylApps:fix-routes-host

Conversation

@Guilain
Copy link
Copy Markdown

@Guilain Guilain commented Apr 15, 2026

Hello,

It's a start for passing host of the AdminDashboard routeOptions to generated routes.

#[AdminDashboard(routePath:` '/', routeName: 'admin', routeOptions: ['host' => '%admin_host%'])]

fix #6756, fix #7119, fix #7411


$adminRoute = $this->createRouteForAdminAttribute($currentClassAdminRoute, $adminRoutePath, $dashboardFqcn, $controllerFqcn, '__invoke');

if (null !== ($host = $dashboardRouteConfig['routeHost'] ?? null)) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check for existant in AdminRoute or override it like here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant