src/Helper.php
public static function returnUrl()
    {
        if (self::$returnUrl === null) {
            $url = ['/' . ltrim(Yii::$app->requestedRoute, '/')];
            foreach (Yii::$app->request->queryParams as $key => $value) {
                $url[$key] = $value;
            }
            self::$returnUrl = Url::to($url);

        }
        return self::$returnUrl;
    }
public static function returnUrl()
    {
        if (self::$returnUrl === null) {
            $url = ['/' . ltrim(Yii::$app->requestedRoute, '/')];
            foreach (Yii::$app->request->queryParams as $key => $value) {
                $url[$key] = $value;
            }
            self::$returnUrl = Url::to($url);

        }
        return self::$returnUrl;
    }
public static function returnUrl ( ) { if ( self :: $ returnUrl === null ) { $ url = [ '/' . ltrim ( Yii :: $ app -> requestedRoute , '/' ) ] ; foreach ( Yii :: $ app -> request -> queryParams as $ key => $ value ) { $ url [ $ key ] = $ value ; } self :: $ returnUrl = Url :: to ( $ url ) ; } return self :: $ returnUrl ; }
returnURL param value.
Used for links from grids and etc. where we should return back to specified URL

@return string
returnURL param value . Used for links from grids and etc . where we should return back to specified URL