8000 fix: oauth code pointing to older desktop page by sagarvora · Pull Request #11483 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: oauth code pointing to older desktop page #11483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frappe/utils/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def redirect_post_login(desk_user, redirect_to=None):
frappe.local.response["type"] = "redirect"

if not redirect_to:
# the #desktop is added to prevent a facebook redirect bug
redirect_to = "/desk#desktop" if desk_user else "/me"
# the #workspace is added to prevent a facebook redirect bug
redirect_to = "/desk#workspace" if desk_user else "/me"

frappe.local.response["location"] = redirect_to
0