0

i try to get the main url of my web site by using function of

ipHomeUrl();

The issue is this function bring also the path of languages even it was left , function bring auto the current languages path

is like that :

http://localhost/wesitename/fr/  

what i want is get only :

http://localhost/wesitename/

2 Answers2

1

If you want to get an URL to the website root, you can use:

ipConfig()->baseUrl()

It should work in a more correct way than cached URL

Mangirdas Skripka
  • 1,647
  • 1
  • 15
  • 14
0

i found the solution , this function will be useful for add link of admin page .

$baseUrl = ipStorage()->get('Ip', 'cachedBaseUrl');

echo ('<div class="AdminSide" > <a href="'.$baseUrl.'admin/">Admin Page</a>  |  <a href="'.$baseUrl.'webmail/"> WebMail</a></div>');