By default, Joomla! inserts into a page absolute (”http://site.com/page”), instead of relative (”/page”) links. It has an advantage—for example if someone will copy the text of your pages all links still will point to your site. But authors of some sites wish, that on their site all links were relative since it can noticeably reduce the size of page.
For this purpose, as well as in the previous note (Why Homepage is “index.php?option=com_frontpage&Itemid=1″?), it is necessary to edit function “sefRelToAbs” in a file “/includes/sef.php” since the outputting of practically all links in Joomla! is fulfilled through this function.
We change (approximately 520-th line)
return $mosConfig_live_site . '/' . $string . $fragment;
return '/' . $string . $fragment;
and (approximately 555-th line)
$string = $mosConfig_live_site . '/' . $string;
$string = '/' . $string;