mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-22 04:39:21 +02:00
Fix redirection URL
This commit is contained in:
parent
47ce734408
commit
3b50f40c08
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue