private function initCurrentUrl()
{
// this will change eah time we step from one segment to the next
$this->currentUrl = $this->base_url;
// cut off a possible trailing slash just in case...
if (substr($this->currentUrl, -1) === '/') {
$this->currentUrl = substr($this->currentUrl, 0, -1);
}
}