Skip to content
Snippets Groups Projects
Commit 3f5b13a2 authored by Braxton Robbason's avatar Braxton Robbason
Browse files

Don't include /? in the next argument when user comes in to the index page

parent 9a819142
No related branches found
No related tags found
No related merge requests found
......@@ -294,8 +294,12 @@ class LDAP(object):
@wraps(func)
def wrapped(*args, **kwargs):
if g.user is None:
next_path=request.full_path or request.path
if next_path == '/?':
return redirect(
url_for(current_app.config['LDAP_LOGIN_VIEW']))
return redirect(url_for(current_app.config['LDAP_LOGIN_VIEW'],
next=request.full_path or request.path))
next=next_path))
return func(*args, **kwargs)
return wrapped
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment