public static function redirectToReferrer()
    {
        $referrer = self::getReferrer();
        if ($referrer !== false) {
            self::redirectToUrl($referrer);
        }
        self::redirectToUrl(self::getCurrentUrlWithoutQueryString());
    }
public static function redirectToReferrer()
    {
        $referrer = self::getReferrer();
        if ($referrer !== false) {
            self::redirectToUrl($referrer);
        }
        self::redirectToUrl(self::getCurrentUrlWithoutQueryString());
    }
public static function redirectToReferrer ( ) { $ referrer = self :: getReferrer ( ) ; if ( $ referrer !== false ) { self :: redirectToUrl ( $ referrer ) ; } self :: redirectToUrl ( self :: getCurrentUrlWithoutQueryString ( ) ) ; }
Redirects the user to the referrer. If no referrer exists, the user is redirected
to the current URL without query string.

@api
Redirects the user to the referrer . If no referrer exists the user is redirected to the current URL without query string .