$field->toUrl()
Turns the field value into an absolute Url
$field->toUrl(): string|null
Return types
string
ornull
This method modifies the existing $field
object it is applied to and returns it again.
Examples
Text file
Title: My great article
----
More: some/related/page
Template
<a href="<?= $page->more()->toUrl() ?>">Read more …</a>