# $field->toUrl()

Turns the field value into an absolute Url

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/methods.php#L303>

****

```php
$field->toUrl(): string|null
```

## Return types

`string` or `null`

This method modifies the existing `$field` object it is applied to and returns it again.


## Examples

### Text file

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

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