Tag for displaying domain name?

Permalink
I know other work arounds...but I was wondering if there was a concrete5 tag for displaying the domain name that the CMS is currently installed on?

The problem I'm having is that my toolbar links are linking to pages such as "/about" when a 3rd party is linked to a page such as "www.mysite.com/home" and the "/about" toolbar link is clicked, then they are directed to "www.mysite.com/home/about" instead of "www.mysite.com/about".

I know I can simple mod the links to include my domain name below, but if the CMS was ever moved to a new domain this would create an issue. Is there anything that concrete5 can do? Or should I just implement a pure PHP work around?

kirgy
 
ScottC replied on at Permalink Best Answer Reply
ScottC
there isn't really a tag, but php wise it is BASE_URL.DIR_REL

-Scott
kirgy replied on at Permalink Reply
kirgy
Thanks Scott, this was my back up :)
ScottC replied on at Permalink Reply
ScottC
alternatively if you have a page you can do this:

$nh = Loader::helper('navigation);
$url = $nh->getLinkToCollection(Page::getByPath($yourPath),true,false); 
print $url;


Same thing more or less.

-Scott