public static function redirectToModule($newModule, $newAction = '', $parameters = array())
    {
        $newUrl = 'index.php' . Url::getCurrentQueryStringWithParametersModified(
                array('module' => $newModule, 'action' => $newAction)
                + $parameters
            );
        Url::redirectToUrl($newUrl);
    }
public static function redirectToModule($newModule, $newAction = '', $parameters = array())
    {
        $newUrl = 'index.php' . Url::getCurrentQueryStringWithParametersModified(
                array('module' => $newModule, 'action' => $newAction)
                + $parameters
            );
        Url::redirectToUrl($newUrl);
    }
public static function redirectToModule ( $ newModule , $ newAction = '' , $ parameters = array ( ) ) { $ newUrl = 'index.php' . Url :: getCurrentQueryStringWithParametersModified ( array ( 'module' => $ newModule , 'action' => $ newAction ) + $ parameters ) ; Url :: redirectToUrl ( $ newUrl ) ; }
Redirects the current request to a new module and action.

@param string $newModule The target module, eg, `'UserCountry'`.
@param string $newAction The target controller action, eg, `'index'`.
@param array $parameters The query parameter values to modify before redirecting.
@api
Redirects the current request to a new module and action .