revert: Override app link click to avoid page reload

This PR reverts unnecessary change  made in https://github.com/frappe/frappe/pull/14394
This commit is contained in:
Suraj Shetty 2021-10-14 09:55:14 +05:30
parent a6bfbe4f1a
commit 08e5aa6afe

View file

@ -56,6 +56,11 @@ $('body').on('click', 'a', function(e) {
return override(e.currentTarget.hash);
}
if (frappe.router.is_app_route(e.currentTarget.pathname)) {
// target has "/app, this is a v2 style route.
return override(e.currentTarget.pathname + e.currentTarget.hash);
}
});
frappe.router = {