fix: Edit Profile link is not redirecting correctly

This commit is contained in:
Shariq Ansari 2023-01-18 10:30:40 +05:30
parent e31db5d502
commit 1b4b6cce15
2 changed files with 3 additions and 4 deletions

View file

@ -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,

View file

@ -18,7 +18,7 @@
</div>
<div>
<span class="my-account-item-link">
<a href="/update-profile?name={{ user }}">
<a href="/update-profile/{{ user }}">
<svg class="edit-profile-icon icon icon-md">
<use href="#icon-edit">
</use>