(cherry picked from commit c8777c59cf665ab54218cd7bf9accd1d8e22ddf9) Co-authored-by: phot0n <ritwikpuri5678@gmail.com>
This commit is contained in:
parent
a35880a089
commit
eb4c4fb7b2
3 changed files with 3 additions and 10 deletions
|
|
@ -52,6 +52,6 @@ context("Table MultiSelect", () => {
|
|||
"existing_value"
|
||||
);
|
||||
cy.get("@existing_value").find(".btn-link-to-form").click();
|
||||
cy.location("pathname").should("contain", "/user/test@erpnext.com");
|
||||
cy.location("pathname").should("contain", "/user/test%40erpnext.com");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -894,11 +894,9 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
return this.settings.get_form_link(doc);
|
||||
}
|
||||
|
||||
const docname = cstr(doc.name).match(/[%'"#\s]/) ? encodeURIComponent(doc.name) : doc.name;
|
||||
|
||||
return `/app/${frappe.router.slug(
|
||||
frappe.router.doctype_layout || this.doctype
|
||||
)}/${docname}`;
|
||||
)}/${encodeURIComponent(cstr(doc.name))}`;
|
||||
}
|
||||
|
||||
get_seen_class(doc) {
|
||||
|
|
|
|||
|
|
@ -369,12 +369,7 @@ frappe.router = {
|
|||
frappe.route_options = a;
|
||||
return null;
|
||||
} else {
|
||||
a = String(a);
|
||||
if (a && a.match(/[%'"#\s\t]/)) {
|
||||
// if special chars, then encode
|
||||
a = encodeURIComponent(a);
|
||||
}
|
||||
return a;
|
||||
return encodeURIComponent(String(a));
|
||||
}
|
||||
}).join("/");
|
||||
let private_home = frappe.workspaces[`home-${frappe.user.name.toLowerCase()}`];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue