I have added a link to an internal page using the panel, ideally, users can adjust which page they would like the button to take them. This is the error: Attempt to read property “url” on null
PHP
<a href="<?= $page->Button1URL()->toFile()->url ?>" >Button</a>
YML
Button1URL:
label: Button 1 URL
type: pages
width: 1/3
TXT
Button1url:
- about