From 0d734e98b1e322ddf80a1b8858d702c3339f2e13 Mon Sep 17 00:00:00 2001 From: Danhia Date: Thu, 17 Feb 2022 12:19:52 +0100 Subject: [PATCH] removed language code in redirect_uri --- src/accounts/views/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounts/views/connection.py b/src/accounts/views/connection.py index 1711b00..f8da2ab 100644 --- a/src/accounts/views/connection.py +++ b/src/accounts/views/connection.py @@ -26,7 +26,7 @@ def connect(request): return bad_request(request, "Already connected") site = Site.objects.get_current() redirect_uri = reverse('accounts:connections-connect-discord-authorize') - redirect_uri = "https://" + site.domain + redirect_uri + redirect_uri = "https://" + site.domain + redirect_uri[2:] # remove language code print(redirect_uri) return oauth.discord.authorize_redirect(request, redirect_uri)