Merge pull request #21042 from maharshivpatel/route-to-workspace

This commit is contained in:
Shariq Ansari 2023-05-18 12:08:10 +05:30 committed by GitHub
commit a96aadc10b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,9 +248,7 @@ frappe.views.Workspace = class Workspace {
this.update_selected_sidebar(page, true); //add selected on new page
if (!frappe.router.current_route[0]) {
frappe.router.current_route = !page.public
? ["Workspaces", "private", page.name]
: ["Workspaces", page.name];
frappe.set_route(frappe.router.slug(page.public ? page.name : "private/" + page.name));
}
this.show_page(page);