Merge pull request #31269 from frappe/revert-29104-develop

Revert "fix: Improper routing for Report links when added to cards in workspaces"
This commit is contained in:
Akhil Narang 2025-02-18 11:20:08 +05:30 committed by GitHub
commit ccd8fb1f8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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