original_string: public function active()
      {
          $uri_path = rtrim(urldecode(Grav::instance()['uri']->path()), '/') ?: '/';
          $routes = Grav::instance()['pages']->routes();
  
          return isset($routes[$uri_path]) && $routes[$uri_path] === $this->path();
      }
code: public function active()
      {
          $uri_path = rtrim(urldecode(Grav::instance()['uri']->path()), '/') ?: '/';
          $routes = Grav::instance()['pages']->routes();
  
          return isset($routes[$uri_path]) && $routes[$uri_path] === $this->path();
      }
code_tokens: public function active ( ) { $ uri_path = rtrim ( urldecode ( Grav :: instance ( ) [ 'uri' ] -> path ( ) ) , '/' ) ? : '/' ; $ routes = Grav :: instance ( ) [ 'pages' ] -> routes ( ) ; return isset ( $ routes [ $ uri_path ] ) && $ routes [ $ uri_path ] === $ this -> path ( ) ; }
docstring: Returns whether or not this page is the currently active page requested via the URL.
  
  @return bool True if it is active
docstring_tokens: Returns whether or not this page is the currently active page requested via the URL .