Troiscent
Troiscent

Hello,

Is there an easy way to get the absolute path in a page.

I'm looking for this to fill the og:url meta tag, I need something like this : http://www.mysite.com/my-url.

Something like this would be perfect :

{{ this.page.absoluteurl }}

But I don't find any twig variable that would do the job...

Thanks

AlanQ
AlanQ

Hi @troiscent19327

Try {{url('/')}}

See How do i get base url in OctoberCMS?

Last updated

1-2 of 2