From 3b50f40c081c499c2ecb8913b54186c622561d76 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 17 Dec 2019 20:17:03 +0000 Subject: [PATCH] Fix redirection URL --- service/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/service.go b/service/service.go index 93f22fa..5181475 100644 --- a/service/service.go +++ b/service/service.go @@ -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 }