$environment->setupFromString() The current URL is predefined with a single string and not detected automatically. kirby/src/Cms/Environment.php#L197 $environment->setupFromString(string $allowed): Kirby\Http\Uri Parameters Name Type Default $allowed * string – Return type Kirby\Http\Uri Parent class Kirby\Cms\Environment