Mautic Community Forums

How to get only the domain with getAssetUrl or anything else?

My Mautic version is: 2.16.1
My PHP version is: 7.0.33-0+deb9u6

I am using this documentation bellow to develop a custom theme.

Please, I am using {{ getAssetUrl(null, null, null, true) }} to get my mautic installation domain URL. It is working fine. But it show the domain like this

My doubt is: How can I get only without the “https://” at the beginning and the “/page/” at the end?

Where can I found a documentation with more functions like getAssetUrl that I can use for Mautic Theme develpment?

Thanks in advanced,


I haven’t created any themes myself, I am note site what is the reason why you need the domain only but there a conversation that might be related here

Re docs
I think that the themes engine is using twig so their documentation might help (also I think the getAssetUrl is an extension from symfony)

Here is what I found
Symfony extension

Twig Symfony docs

Hope this helps