Commit 5c06809c authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Merge branch 'fix-redir-issue' into 'master'

Fixed redir issue

See merge request !13
parents 5551bef2 c713c43d
......@@ -40,13 +40,7 @@ def create_app(config_name):
if 'user' not in session:
session["user"] = get_authorized_user()
if "redir" in request.args and 'return_url' not in session: # check for redir arg in url
session['return_url'] = request.args.get("redir")
elif "redir" not in request.args and 'return_url' not in session:
session['return_url'] = vars.default_referrer
else:
session['return_url'] = request.referrer
session['return_url'] = request.args.get('redir', vars.default_referrer)
return render_template('auth/SignUp.html', room_id=session['uid'],
username=session['user'].get('username'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment