$field->toUrl()

Creates an URL for any field value

  • return (string)

Example

<?php echo $page->title()->toUrl() ?>