fix(workspace): use workspace name instead of title for routing in sidebar link

This commit is contained in:
KerollesFathy 2026-05-03 13:56:20 +00:00
parent ace15b5588
commit 96e61b23e2

View file

@ -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"))