private function setNextCurrentURL(Segment $segment, $different_links) { if ($different_links == true) { $this->currentUrl = $this->base_url; } else { $this->currentUrl = $this->currentUrl . '/' . $segment->get('raw'); } }