Skip to content

Kirby 4.5.0

$asset->mediaUrl()

Returns the absolute Url to the file in the public media folder

$asset->mediaUrl(): string

Return type

string

Parent class

Kirby\Filesystem\Asset