Версия 0.1.0 #1
@ -24,8 +24,10 @@ public function url(Project $project, ?ProjectLanguage $language = null): string
|
||||
$prefixLanguage = '-language';
|
||||
}
|
||||
|
||||
return match ($this) {
|
||||
self::Home => \route($prefixProject . 'home' . $prefixLanguage, $parameters),
|
||||
$route = match ($this) {
|
||||
self::Home => \route($prefixProject . 'home' . $prefixLanguage, $parameters, false),
|
||||
};
|
||||
|
||||
return $project->http_host . $route;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user