From 0c374166b2f6d85e46d69fd8994918ab2f89f7d5 Mon Sep 17 00:00:00 2001 From: freyamade Date: Sat, 1 Jul 2023 06:00:55 +0100 Subject: [PATCH] fixed slight issue with redirect urls --- backend/backend/urls.py | 4 ++-- backend/backend/urls_live.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/backend/urls.py b/backend/backend/urls.py index bef0bc2c..0fc93847 100644 --- a/backend/backend/urls.py +++ b/backend/backend/urls.py @@ -32,12 +32,12 @@ # Set auth urls to redirect and display an error message instead path( 'auth/cancelled/', - RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}/auth/?auth_cancelled=1', permanent=True), + RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}auth/?auth_cancelled=1', permanent=True), name='socialaccount_login_cancelled', ), path( 'auth/error/', - RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}/auth/?auth_error=1', permanent=True), + RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}auth/?auth_error=1', permanent=True), name='socialaccount_login_error', ), ] diff --git a/backend/backend/urls_live.py b/backend/backend/urls_live.py index b4090904..a1271c99 100644 --- a/backend/backend/urls_live.py +++ b/backend/backend/urls_live.py @@ -30,12 +30,12 @@ # Set auth urls to redirect and display an error message instead path( 'auth/cancelled/', - RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}/auth/?auth_cancelled=1', permanent=True), + RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}auth/?auth_cancelled=1', permanent=True), name='socialaccount_login_cancelled', ), path( 'auth/error/', - RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}/auth/?auth_error=1', permanent=True), + RedirectView.as_view(url=f'{settings.LOGIN_REDIRECT_URL}auth/?auth_error=1', permanent=True), name='socialaccount_login_error', ), ]