mirror of
https://git.freesoftwareextremist.com/bloat
synced 2024-12-22 17:10:42 +00:00
Fix redirection URL
This commit is contained in:
parent
47ce734408
commit
3b50f40c08
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue