fix: remove slashes from the report link in workspace card (#25593)

This commit is contained in:
Nihantra C. Patel 2024-03-27 11:07:03 +05:30 committed by GitHub
parent 90c97b3c13
commit 4ab6a34474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1300,7 +1300,7 @@ Object.assign(frappe.utils, {
if (item.is_query_report) {
route = "query-report/" + item.name;
} else if (!item.doctype) {
route = "/report/" + item.name;
route = "report/" + item.name;
} else {
route = frappe.router.slug(item.doctype) + "/view/report/" + item.name;
}