This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.