src/FrontendIntegration/FrontendFilter.php
protected function checkRedirect($widgets, $wantedParameter, $allParameter)
    {
        // @codingStandardsIgnoreStart
        @trigger_error(
            sprintf('"%1$s" has been deprecated in favor of the new "FilterUrlBuilder"', __METHOD__),
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        // If we have POST data, we need to redirect now.
        if (Input::post('FORM_SUBMIT') != $this->formId) {
            return;
        }
        $redirectParameters = $allParameter['other'];
        foreach ($wantedParameter as $widgetName) {
            $filter = $widgets[$widgetName];
            if ($filter['urlvalue'] !== null) {
                $redirectParameters[$widgetName] = $filter['urlvalue'];
            }
        }

        $filterUrl  = new FilterUrl($this->objFilterConfig->getJumpTo(), [], $redirectParameters);
        $dispatcher = $this->getDispatcher();
        $dispatcher->dispatch(
            ContaoEvents::CONTROLLER_REDIRECT,
            new RedirectEvent($this->filterUrlBuilder->generate($filterUrl))
        );
    }
protected function checkRedirect($widgets, $wantedParameter, $allParameter)
    {
        // @codingStandardsIgnoreStart
        @trigger_error(
            sprintf('"%1$s" has been deprecated in favor of the new "FilterUrlBuilder"', __METHOD__),
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        // If we have POST data, we need to redirect now.
        if (Input::post('FORM_SUBMIT') != $this->formId) {
            return;
        }
        $redirectParameters = $allParameter['other'];
        foreach ($wantedParameter as $widgetName) {
            $filter = $widgets[$widgetName];
            if ($filter['urlvalue'] !== null) {
                $redirectParameters[$widgetName] = $filter['urlvalue'];
            }
        }

        $filterUrl  = new FilterUrl($this->objFilterConfig->getJumpTo(), [], $redirectParameters);
        $dispatcher = $this->getDispatcher();
        $dispatcher->dispatch(
            ContaoEvents::CONTROLLER_REDIRECT,
            new RedirectEvent($this->filterUrlBuilder->generate($filterUrl))
        );
    }
Check if we want to redirect to another url.

@param array $widgets         The widgets.

@param array $wantedParameter The wanted parameters.

@param array $allParameter    The current parameters.

@return void

@deprecated Do not use.