From 05fdd6d0dae30e2b64acdc67819ae7c17db5137b Mon Sep 17 00:00:00 2001 From: prssanna Date: Mon, 8 Feb 2021 11:43:50 +0530 Subject: [PATCH] fix: dashboard shortcut route on workspace --- frappe/public/js/frappe/utils/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/utils/utils.js b/frappe/public/js/frappe/utils/utils.js index 5f6126b81f..de888fcd4a 100644 --- a/frappe/public/js/frappe/utils/utils.js +++ b/frappe/public/js/frappe/utils/utils.js @@ -708,7 +708,7 @@ Object.assign(frappe.utils, { title = frappe._title_prefix + " " + title.replace(/<[^>]*>/g, ""); } document.title = title; - + // save for re-routing const sub_path = frappe.router.get_sub_path(); frappe.route_titles[sub_path] = title; @@ -1172,7 +1172,7 @@ Object.assign(frappe.utils, { } else if (type === "page") { route = item.name; } else if (type === "dashboard") { - route = "dashboard/" + item.name; + route = `dashboard-view/${item.name}`; } } else {