Skip to content

Kirby 4.1.2

$field->toUrl()

Turns the field value into an absolute Url

$field->toUrl(): string|null

Return type

string|null

Example

Text file

Title: My great article
----
More: some/related/page

Template

<a href="<?= $page->more()->toUrl() ?>">Read more …</a>