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