Skip to content

Commit a283865

Browse files
committed
Fixes error with unperisted dynamic route
1 parent f64a355 commit a283865

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Admin/Extension/FrontendLinkExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public function configureTabMenu(
6868
);
6969
}
7070

71+
if($subject instanceof PrefixInterface && !is_string($subject->getId())) {
72+
// we have an unpersisted dynamic route
73+
return;
74+
}
75+
7176
try {
7277
$uri = $this->router->generate($subject);
7378
} catch (RoutingExceptionInterface $e) {

0 commit comments

Comments
 (0)