public function currentPageUrl($parameters = [], $routePersistence = true)
    {
        if (!$currentFile = $this->page->getFileName()) {
            return null;
        }

        return $this->pageUrl($currentFile, $parameters, $routePersistence);
    }
public function currentPageUrl($parameters = [], $routePersistence = true)
    {
        if (!$currentFile = $this->page->getFileName()) {
            return null;
        }

        return $this->pageUrl($currentFile, $parameters, $routePersistence);
    }
public function currentPageUrl ( $ parameters = [ ] , $ routePersistence = true ) { if ( ! $ currentFile = $ this -> page -> getFileName ( ) ) { return null ; } return $ this -> pageUrl ( $ currentFile , $ parameters , $ routePersistence ) ; }
Looks up the current page URL with supplied parameters and route persistence.
@param array $parameters
@param bool $routePersistence
@return null|string
Looks up the current page URL with supplied parameters and route persistence .