Skip to content

Commit

Permalink
Merge pull request #165 from nsidc/bugfix-proxy-redirect
Browse files Browse the repository at this point in the history
BugFix proxy redirect
  • Loading branch information
rmarow authored Oct 9, 2023
2 parents 331a043 + 90f39d2 commit dad43c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion usaon_vta_survey/routes/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def login():
user = ensure_user_exists(resp.json())
login_user(user)

return redirect('/')
return redirect(url_for('root.root'))


# this may be the login issue
Expand Down
4 changes: 2 additions & 2 deletions usaon_vta_survey/routes/logout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import Blueprint, redirect
from flask import Blueprint, redirect, url_for
from flask_login import logout_user

logout_bp = Blueprint('logout', __name__, url_prefix='/logout')
Expand All @@ -7,4 +7,4 @@
@logout_bp.route("")
def logout():
logout_user()
return redirect("/")
return redirect(url_for("root.root"))

0 comments on commit dad43c8

Please sign in to comment.