Cant output the URL of the url field

Hey,

I got a url field in my blueprint for a link to instagram. But instead of getting the url i put in, i only get the page url. I using this code to fetch it:

Blueprint:
url:
label: Instagram Beitrag
type: url

$page->url()

Thanks for help. I know this is a very simple question but i followed the documentation and its not working :frowning:

You’re using a reserved page method. Have a look at this page in the docs.

If you don’t want to change your field name (I’d suggest going with instagram_url) you can use $page->content()->url().

Thanks, it works!