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 http://mydomain.com/page

My doubt is: How can I get only mydomain.com 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,

Hi

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 https://github.com/symfony/symfony/blob/168574db2961ad693dec6ed3fe09b4278c2bcc55/src/Symfony/Bridge/Twig/Extension/AssetExtension.php

Twig Symfony docs

https://twig.symfony.com/doc/2.x/

Hope this helps