fix: text editor for bio and profile redirect changes

This commit is contained in:
Jannat Patel
2021-12-14 16:46:06 +05:30
parent 682188540c
commit 8489b1d943
5 changed files with 4 additions and 71 deletions

View File

@@ -10,7 +10,8 @@ def get_context(context):
except KeyError:
username = frappe.db.get_value("User", frappe.session.user, ["username"])
if username:
frappe.local.flags.redirect_location = get_profile_url_prefix() + urlencode({"username": username})
print(urlencode({"username": username}))
frappe.local.flags.redirect_location = get_profile_url_prefix() + username
raise frappe.Redirect
try:
context.member = frappe.get_doc("User", {"username": username})