public getReturnUrl ( string | array $defaultUrl = null ) : string | ||
$defaultUrl | string | array | the default return URL in case it was not set previously. If this is null and the return URL was not set previously, [[Application::homeUrl]] will be redirected to. Please refer to [[setReturnUrl()]] on accepted format of the URL. |
return | string | the URL that the user should be redirected to after login. |