Merge pull request #21042 from maharshivpatel/route-to-workspace
This commit is contained in:
commit
a96aadc10b
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue