Merge pull request #20971 from shariquerik/maintain-frappe-current-route
fix: maintain frappe.router.current_router
This commit is contained in:
commit
ea20cdd4d5
1 changed files with 6 additions and 0 deletions
|
|
@ -247,6 +247,12 @@ frappe.views.Workspace = class Workspace {
|
|||
this.update_selected_sidebar(this.current_page, false); //remove selected from old page
|
||||
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];
|
||||
}
|
||||
|
||||
this.show_page(page);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue