$field->toUrl()

Creates an URL for any field value

  • return (string)

Example

<?= $page->title()->toUrl() ?>