diff --git a/src/LocalizedUrlGenerator.php b/src/LocalizedUrlGenerator.php index 7e02718..4282bc2 100644 --- a/src/LocalizedUrlGenerator.php +++ b/src/LocalizedUrlGenerator.php @@ -162,7 +162,7 @@ protected function is404(): bool */ protected function isFallback(): bool { - return $this->route->isFallback; + return $this->routeExists() && $this->route->isFallback; } /**