Fetch batch redirect url.

@return string
336507
protected function getBatchRedirectUrl() : string
    {
        // default url
        $result = ['plugin' => $this->plugin, 'controller' => $this->name, 'action' => 'index'];

        $currentUrl = $this->request->getEnv('HTTP_ORIGIN') . $this->request->getRequestTarget();
        // if referer does not match current url, redirect to referer (delete action)
        if (false === strpos($this->referer(), $currentUrl)) {
            $result = $this->referer();
        }

        // use batch redirect url if provided (edit action)
        if ($this->request->getData('batch.redirect_url')) {
            $result = $this->request->getData('batch.redirect_url');
        }

        return Router::url($result);
    }
1371980
public function getDefaultPostLoginUrl()
    {
        $result = '';
        $loginRedirectMode = (string) $this->config->get('concrete.misc.login_redirect');
        switch ($loginRedirectMode) {
            case 'CUSTOM':
                $loginRedirectCollectionID = $this->config->get('concrete.misc.login_redirect_cid');
                if ($this->valn->integer($loginRedirectCollectionID, 1)) {
                    $page = Page::getByID($loginRedirectCollectionID);
                    if ($page && !$page->isError()) {
                        $result = (string) $this->resolverManager->resolve([$page]);
                    }
                }
                break;
            case 'DESKTOP':
                $desktop = DesktopList::getMyDesktop();
                if ($desktop && !$desktop->isError()) {
                    $result = (string) $this->resolverManager->resolve([$desktop]);
                }
                break;
        }

        return $result;
    }
711386
public function getUrl() : Url
  {
    return Url::from(
      $this->getHttpScheme() . '://' . $this->getHost() . $this->server('REQUEST_URI')
    );
  }
623192
public function getUrl()
    {
        if (!$this->isSortable()) {
            return '';
        }

        $params = ['sort_key' => $this->key];

        if ($this->isSortKey()) {
            $params['sort_order'] = $this->request->input('sort_order') == 'desc' ? 'asc' : 'desc';
        }

        return '?'.http_build_query($params + $this->request->all());
    }
345249
public function getRedirectUri()
    {
        $scopes = array_map(
            function(IScope $scope) {
                return $scope->getId();
            },
            $this->accessToken->getScopes()
        );

        $query = [
            'access_token' => $this->accessToken->getId(),
            'expires_in' => $this->accessToken->getExpiresAt() - time(),
            'token_type' => $this->tokenTypeName,
            'scope' => join(' ', $scopes)
        ];

        if ($this->state) {
            $query['state'] = $this->state;
        }

        ksort($query); // sort query params by key

        return $this->redirectUri . '#' . http_build_query($query);
    }
953955
private function getIndexRedirectionResponse()
    {
        $response = new Redirection($this->getRequest());
        $url = sprintf('/%s/', $this->getCollectionName());
        // If a particular view was being shown, honour it.
        $view = $this->getRequest()->getParameter('view');
        if (!empty($view)) {
            $url .= '?view=' . $view;
        }
        $response->setNextUrl($url);

        return $response;
    }
1274382
public function getRedirects(): array
    {
        $redirects = $this->cache->get('redirects');
        if (!is_array($redirects)) {
            $redirects = $this->rebuild();
        }
        return $redirects;
    }
1095681
public function getRedirectData()
    {
        // Build the post data as expected by Datatrans.
        $params = $this->getData();
        $getData = array();
        foreach ($params as $key => $value) {
            $getData[$key] = $value;
        }

        return $getData;
    }
1163455
protected function getBaseUrl()
    {
        $baseUrl = $this->container->get('router')->getContext()->getBaseUrl();

        if ($baseUrl === '/') {
            return '';
        }

        return rtrim(str_replace('app_dev.php', '', $this->container->get('router')->getContext()->getBaseUrl()), '/').'/';
    }
97513
public function redirectForTrailingSlash()
    {
        $config = \Nf\Registry::get('config');
        $redirectionUrl = false;
        $requestParams = '';
        $requestPage = '/' . $this->_uri;
        
        // we don't redirect for the home page...
        if ($requestPage != '/' && mb_strpos($requestPage, '/?') !== 0) {
            // the url without the params is :
            if (mb_strpos($requestPage, '?') !== false) {
                $requestParams = mb_substr($requestPage, mb_strpos($requestPage, '?'), mb_strlen($requestPage) - mb_strpos($requestPage, '?'));
                $requestPage = mb_substr($requestPage, 0, mb_strpos($requestPage, '?'));
            }
            
            if (isset($config->trailingSlash->needed) && $config->trailingSlash->needed == true) {
                if (mb_substr($requestPage, - 1, 1) != '/') {
                    $redirectionUrl = 'http://' . $_SERVER['HTTP_HOST'] . $requestPage . '/' . $requestParams;
                }
            } else {
                if (mb_substr($requestPage, - 1, 1) == '/') {
                    $redirectionUrl = 'http://' . $_SERVER['HTTP_HOST'] . rtrim($requestPage, '/') . $requestParams;
                }
            }
            
            if ($redirectionUrl !== false) {
                $response = new \Nf\Front\Response\Http();
                $response->redirect($redirectionUrl, 301);
                $response->sendHeaders();
                return true;
            }
        }
        
        return false;
    }
1228018
public function getRouteURL()
    {
        if (empty($this->routeUrl)) {
            $param = trim(Server::get('REQUEST_URI'), '/');

            // strip base directory from request url
            $base_dir = $this->getBaseDir();
            $param = substr($param, strlen($base_dir));

            // Strip query string (?a=b) from Request Url
            $path = trim(explode('?', $param)[0], '/');
            $this->routeUrl = strtolower($path);

            if (empty($this->routeUrl)) {
                $this->routeUrl = '/';
            }
        }

        return $this->routeUrl;
    }
72187
public function getRedirects()
    {
        $redirects = $this->repository->redirects;
        if ($redirects === null) {
            $redirects = array();
        }
        usort($redirects, array($this, 'cmp'));
        return $redirects;
    }
708214
private function _batchUrl($batchId, $subPath = '')
    {
        $ebid = rawurlencode($batchId);

        if (empty($ebid)) {
            throw new \InvalidArgumentException("Empty batch ID given");
        }

        return $this->_url('/batches/' . $ebid . $subPath);
    }
609004
public function getNextUrl() {
        $lastChunk = ceil($this->_max / $this->_options['pageSize']);
        if ($this->_chunk == $lastChunk) {
            return $this->_options['cycle'] ? $this->createStateUrl(1) : false;
        }
        return $this->createStateUrl($this->_chunk+1);
    }
922344
public function getUrl()
    {
        $query = $this->getQueryString();
        return sprintf('%s://%s/%s/%s%s',
            $this->getScheme(),
            trim($this->getHost(), '/'),
            trim($this->config->getRootEndpoint(), '/'),
            $this->getEntityType(),
            empty($query) ? '' : sprintf('?%s', $query)
        );
    }
168298
protected function getReturnUrl()
    {
        $controllerKey = \OxidEsales\Eshop\Core\Registry::getControllerClassNameResolver()->getIdByClassName(get_class());
        return $this->getSession()->processUrl($this->getBaseUrl() . "&cl=" . $controllerKey . "&fnc=getExpressCheckoutDetails");
    }
72141
public function getUrl()
    {
        if ($this->getMethod() == "GET" && $this->getQuery()) {
            $this->_sUrl = $this->_sUrl . "?" . $this->getQuery();
        }

        return $this->_sUrl;
    }