fix: routing for non-query reports (#36646)

This commit is contained in:
Kerolles Fathy 2026-02-08 07:56:10 +02:00 committed by GitHub
parent 03fe39e812
commit a77799b538
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1564,8 +1564,7 @@ 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/" + item.name;
route = frappe.router.slug(item.report_ref_doctype) + "/view/report/";
} else {
route = "report/" + item.name;
}