protected function getCurrentPageUrl($pager)
    {
        if ($pager->isFirstPage()) {
            $pageUrl = $pager->getPageUrl(null);
        } else {
            $pageUrl = $pager->getPageUrl($pager->getCurrentPage());
        }
        return $this->removeTags->filter($pageUrl);
    }
protected function getCurrentPageUrl($pager)
    {
        if ($pager->isFirstPage()) {
            $pageUrl = $pager->getPageUrl(null);
        } else {
            $pageUrl = $pager->getPageUrl($pager->getCurrentPage());
        }
        return $this->removeTags->filter($pageUrl);
    }
protected function getCurrentPageUrl ( $ pager ) { if ( $ pager -> isFirstPage ( ) ) { $ pageUrl = $ pager -> getPageUrl ( null ) ; } else { $ pageUrl = $ pager -> getPageUrl ( $ pager -> getCurrentPage ( ) ) ; } return $ this -> removeTags -> filter ( $ pageUrl ) ; }
Retrieve current page URL

@param \Magento\Theme\Block\Html\Pager $pager
@return string
Retrieve current page URL