Skip to content

Kirby 6.0.1

$home->hasValidDomain()

Checks if the given Uri has the same domain as the index URL of the Kirby installation. This is used to block external URLs to third-party domains as redirect options.

$home->hasValidDomain(Uri $uri): bool

Parameters

Name Type Default
$urirequired Kirby\Http\Uri no default value

Return type

bool

Parent class

Kirby\Panel\Home