diff --git a/packages/framework/src/Framework/Features/Navigation/NavigationItem.php b/packages/framework/src/Framework/Features/Navigation/NavigationItem.php index 339f018a473..f2064bf86d0 100644 --- a/packages/framework/src/Framework/Features/Navigation/NavigationItem.php +++ b/packages/framework/src/Framework/Features/Navigation/NavigationItem.php @@ -104,7 +104,7 @@ public function getRoute(): ?Route */ public function getUrl(): string { - return (string) $this->route; + return $this->destination->getLink(); } /**