Commit c713c43d authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

1. fixed redir issue seen earlier

 -  Issue: in case referrer was null, app redirected to /None
 -  Fix: in case of redir value in request, set session to redir value
         else, set session to default referrer (from
parent e2309e5b
Pipeline #5079 failed with stage
......@@ -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
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'],
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