public function isCurrent($page, $pattern)
    {
        // Remove site URL from string
        $page = str_replace($this->getBuilder()->app->getSetting('url'), '', $page);

        return str_is($pattern, $page);
    }
public function isCurrent($page, $pattern)
    {
        // Remove site URL from string
        $page = str_replace($this->getBuilder()->app->getSetting('url'), '', $page);

        return str_is($pattern, $page);
    }
public function isCurrent ( $ page , $ pattern ) { // Remove site URL from string $ page = str_replace ( $ this -> getBuilder ( ) -> app -> getSetting ( 'url' ) , '' , $ page ) ; return str_is ( $ pattern , $ page ) ; }
Is given URL the current page?

@param $page
@param $pattern
@return bool
Is given URL the current page?