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:
parent
a6bfbe4f1a
commit
08e5aa6afe
1 changed files with 5 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue