fix: handle '/' in the route

This commit is contained in:
Ejaaz Khan 2025-12-29 17:44:59 +05:30
parent e53aa9c31e
commit ab6bcfdf77

View file

@ -405,6 +405,11 @@ frappe.router = {
route.shift();
}
// Handle cases where "/" is part of the name
if (route[0] === "Form" && route.length > 3) {
route = [route[0], route[1], route.slice(2).join("/")];
}
return route;
},