fix: Page not found error when saving public workspace with multi word name

This commit is contained in:
Md Gulam Gaush 2026-04-23 11:49:24 +05:30
parent e9d579125d
commit be0cf977a2

View file

@ -758,9 +758,13 @@ frappe.views.Workspace = class Workspace {
indicator: "green",
});
if (page.public) {
frappe.set_route("desk", page.title.toLowerCase());
frappe.set_route("desk", frappe.router.slug(page.title));
} else {
frappe.set_route("desk", "private", page.title.toLowerCase());
frappe.set_route(
"desk",
"private",
frappe.router.slug(page.title)
);
}
}
},