|
|
@@ -282,7 +282,7 @@ frappe.router = { |
|
|
|
resolve(); |
|
|
|
}); |
|
|
|
}, 100); |
|
|
|
}); |
|
|
|
}).finally(() => frappe.route_flags = {}); |
|
|
|
}, |
|
|
|
|
|
|
|
get_route_from_arguments(route) { |
|
|
@@ -374,8 +374,9 @@ frappe.router = { |
|
|
|
// change the URL and call the router |
|
|
|
if (window.location.pathname !== url) { |
|
|
|
|
|
|
|
// push state so the browser looks fine |
|
|
|
history.pushState(null, null, url); |
|
|
|
// push/replace state so the browser looks fine |
|
|
|
const method = frappe.route_flags.replace_route ? "replaceState" : "pushState"; |
|
|
|
history[method](null, null, url); |
|
|
|
|
|
|
|
// now process the route |
|
|
|
this.route(); |
|
|
|