Block/Html/Pager.php
public function getPagerUrl($params = [])
    {
        $urlParams = [];
        $urlParams['_current'] = false;
        $urlParams['_escape']  = true;
        $urlParams['_query']   = $params;

        $path = $this->getUrl($this->getPath(), $urlParams);
        if ($this->getEntity()) {
            $path = $this->getEntity()->getUrl($urlParams);
        } elseif ($this->getRequest()->getControllerName() == 'search') {
            $url = ObjectManager::getInstance()->get('Mirasvit\Blog\Model\Url');
            $urlParams['_current'] = true;
            $path = $url->getSearchUrl($urlParams);
        }

        return $path;
    }
public function getPagerUrl($params = [])
    {
        $urlParams = [];
        $urlParams['_current'] = false;
        $urlParams['_escape']  = true;
        $urlParams['_query']   = $params;

        $path = $this->getUrl($this->getPath(), $urlParams);
        if ($this->getEntity()) {
            $path = $this->getEntity()->getUrl($urlParams);
        } elseif ($this->getRequest()->getControllerName() == 'search') {
            $url = ObjectManager::getInstance()->get('Mirasvit\Blog\Model\Url');
            $urlParams['_current'] = true;
            $path = $url->getSearchUrl($urlParams);
        }

        return $path;
    }
public function getPagerUrl ( $ params = [ ] ) { $ urlParams = [ ] ; $ urlParams [ '_current' ] = false ; $ urlParams [ '_escape' ] = true ; $ urlParams [ '_query' ] = $ params ; $ path = $ this -> getUrl ( $ this -> getPath ( ) , $ urlParams ) ; if ( $ this -> getEntity ( ) ) { $ path = $ this -> getEntity ( ) -> getUrl ( $ urlParams ) ; } elseif ( $ this -> getRequest ( ) -> getControllerName ( ) == 'search' ) { $ url = ObjectManager :: getInstance ( ) -> get ( 'Mirasvit\Blog\Model\Url' ) ; $ urlParams [ '_current' ] = true ; $ path = $ url -> getSearchUrl ( $ urlParams ) ; } return $ path ; }
Retrieve page URL by defined parameters

@param array $params
@return string
Retrieve page URL by defined parameters