From 1b4b6cce15d081f6b9082a4d086da827d2de6c6d Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 18 Jan 2023 10:30:40 +0530 Subject: [PATCH] fix: Edit Profile link is not redirecting correctly --- frappe/core/web_form/edit_profile/edit_profile.json | 5 ++--- frappe/www/me.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frappe/core/web_form/edit_profile/edit_profile.json b/frappe/core/web_form/edit_profile/edit_profile.json index 8abb2164f9..9a38b29b68 100644 --- a/frappe/core/web_form/edit_profile/edit_profile.json +++ b/frappe/core/web_form/edit_profile/edit_profile.json @@ -7,25 +7,24 @@ "allow_print": 0, "apply_document_permissions": 0, "breadcrumbs": "[{\"title\": _(\"My Account\"), \"route\": \"me\"}]", + "client_script": "frappe.web_form.after_load = () => {\n if (window.location.pathname.endsWith(\"/new\") && frappe.session.user) {\n let current_path = window.location.href;\n window.location.href = current_path.replace(\"/new\", \"/\" + frappe.session.user);\n }\n}", "creation": "2016-09-19 05:16:59.242754", "doc_type": "User", "docstatus": 0, "doctype": "Web Form", "idx": 0, "introduction_text": "", - "is_multi_step_form": 0, "is_standard": 1, "list_columns": [], "login_required": 1, "max_attachment_size": 0, - "modified": "2022-07-18 16:51:19.796411", + "modified": "2023-01-18 10:26:26.766414", "modified_by": "Administrator", "module": "Core", "name": "edit-profile", "owner": "Administrator", "published": 1, "route": "update-profile", - "route_to_success_link": 0, "show_attachments": 0, "show_list": 0, "show_sidebar": 0, diff --git a/frappe/www/me.html b/frappe/www/me.html index b0fbf1f899..6d47f2425e 100644 --- a/frappe/www/me.html +++ b/frappe/www/me.html @@ -18,7 +18,7 @@