Fix redirection URL

This commit is contained in:
r 2019-12-17 20:17:03 +00:00
parent 47ce734408
commit 3b50f40c08

View file

@ -107,7 +107,7 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) (
}
}
u, err := url.Parse(path.Join(instance, "/oauth/authorize"))
u, err := url.Parse("/oauth/authorize")
if err != nil {
return
}
@ -119,7 +119,7 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) (
q.Set("redirect_uri", svc.clientWebsite+"/oauth_callback")
u.RawQuery = q.Encode()
redirectUrl = u.String()
redirectUrl = instanceURL + u.String()
return
}