We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d110c2 commit b9b399bCopy full SHA for b9b399b
src/EventListener/AdminRouterSubscriber.php
@@ -163,8 +163,7 @@ public function onKernelRequest(RequestEvent $event): void
163
164
// if this is a ugly URL from legacy EasyAdmin versions and the application
165
// uses pretty URLs, redirect to the equivalent pretty URL
166
- if ($this->adminRouteGenerator->usesPrettyUrls()) {
167
- $entityFqcnOrCrudControllerFqcn = $request->query->get(EA::CRUD_CONTROLLER_FQCN);
+ if ($this->adminRouteGenerator->usesPrettyUrls() && null !== $entityFqcnOrCrudControllerFqcn = $request->query->get(EA::CRUD_CONTROLLER_FQCN)) {
168
if (is_subclass_of($entityFqcnOrCrudControllerFqcn, CrudControllerInterface::class)) {
169
$crudControllerFqcn = $entityFqcnOrCrudControllerFqcn;
170
} else {
0 commit comments