Render title of internal page link

I have a simple Link field referring to page links only:

fields:
  link:
    type: link
    options:
      - page

When I render the link in my template like this:

<a href="<?= $page->link()->toUrl() ?>"><?= $page->link() ?></a>

I don’t get the title of the linked page rendered, but only the UUID, like this:

<a href="mysite.test/linkto/page"> page://RgUzW7i5EdYOpNYx </a>

is it possible to render the title of the linked page without adding a new “link title” field?

Thank you.

In your case, since you only have page links, convert the field value to a page object:

$page->link()->toPage()?->title();