diff --git a/services/sso/url.go b/services/sso/url.go index ffb8c35..2c37762 100644 --- a/services/sso/url.go +++ b/services/sso/url.go @@ -13,8 +13,8 @@ func GetLoginUrl(ident string, redirectUrl string, env ...string) string { return fmt.Sprintf("%s://%s%s", scheme, host, uri) } -func GetLogoutUrl(ident string, env ...string) string { - uri := fmt.Sprintf("/admin/main/loginOut?ident=%s&redirectUrl=", ident) +func GetLogoutUrl(ident string, redirectUrl string, env ...string) string { + uri := fmt.Sprintf("/admin/main/loginOut?ident=%s&redirectUrl=%s", ident, url.QueryEscape(redirectUrl)) scheme, host := getSchemeAndHost(env...) return fmt.Sprintf("%s://%s%s", scheme, host, uri) }