URLSegment; } else { return 'home'; } } /** * Returns true if we're currently on the root page and should be redirecting to the root * Doesn't take into account actions, post vars, or get vars */ static function should_be_on_root(SiteTree $currentPage) { if(!self::$is_at_root) return self::get_homepage_urlsegment() == $currentPage->URLSegment; else return false; } } ?>