Skip to content

Commit c1e4021

Browse files
committed
Fixing login redirect when not using oidc
1 parent 27c3509 commit c1e4021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uber/site_sections/accounts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def login(self, session, message='', original_location=None, **params):
195195
auth = OneLogin_Saml2_Auth(req, c.SAML_SETTINGS)
196196
raise HTTPRedirect(auth.login(return_to=redirect_url))
197197

198-
original_location = create_valid_user_supplied_redirect_url(original_location, default_url='accounts/homepage')
198+
original_location = create_valid_user_supplied_redirect_url(original_location, default_url='/accounts/homepage')
199199
if 'email' in params:
200200
try:
201201
account = session.get_admin_account_by_email(params['email'])

0 commit comments

Comments
 (0)