From 08e5aa6afea01472c8709cb738516cdbbd2e8dc8 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Thu, 14 Oct 2021 09:55:14 +0530 Subject: [PATCH] revert: Override app link click to avoid page reload This PR reverts unnecessary change made in https://github.com/frappe/frappe/pull/14394 --- frappe/public/js/frappe/router.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frappe/public/js/frappe/router.js b/frappe/public/js/frappe/router.js index 349eadffb0..cf132c82ea 100644 --- a/frappe/public/js/frappe/router.js +++ b/frappe/public/js/frappe/router.js @@ -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 = {