fix: redirect URL for oauth
This commit is contained in:
parent
f638173774
commit
d8a24871f8
2 changed files with 2 additions and 2 deletions
|
|
@ -290,7 +290,7 @@ def redirect_post_login(desk_user):
|
|||
frappe.local.response["type"] = "redirect"
|
||||
|
||||
# the #desktop is added to prevent a facebook redirect bug
|
||||
frappe.local.response["location"] = "/desk#desktop" if desk_user else "/"
|
||||
frappe.local.response["location"] = "/desk#" if desk_user else "/me"
|
||||
|
||||
def oauth_decoder(data):
|
||||
if isinstance(data, bytes):
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ no_cache = True
|
|||
|
||||
def get_context(context):
|
||||
if frappe.session.user != "Guest":
|
||||
frappe.local.flags.redirect_location = "/me" if frappe.session.data.user_type=="Website User" else "/desk"
|
||||
frappe.local.flags.redirect_location = "/" if frappe.session.data.user_type=="Website User" else "/desk"
|
||||
raise frappe.Redirect
|
||||
|
||||
# get settings from site config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue