fix(workspace): use workspace name instead of title for routing in sidebar link
This commit is contained in:
parent
ace15b5588
commit
96e61b23e2
1 changed files with 2 additions and 2 deletions
|
|
@ -11,8 +11,8 @@ frappe.ui.form.on("Workspace", {
|
|||
frm.trigger("add_to_desktop");
|
||||
let url = `/desk/${
|
||||
frm.doc.public
|
||||
? frappe.router.slug(frm.doc.title)
|
||||
: "private/" + frappe.router.slug(frm.doc.title)
|
||||
? frappe.router.slug(frm.doc.name)
|
||||
: "private/" + frappe.router.slug(frm.doc.name)
|
||||
}`;
|
||||
frm.sidebar
|
||||
.add_user_action(__("Go to Workspace"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue