Skip to content

Commit

Permalink
fixed slight issue with redirect urls
Browse files Browse the repository at this point in the history
  • Loading branch information
freyamade committed Jul 1, 2023
1 parent fe1d8bc commit 0c37416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
]
Expand Down
4 changes: 2 additions & 2 deletions backend/backend/urls_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
]
Expand Down

0 comments on commit 0c37416

Please sign in to comment.