From a6fce22c63fbc26eb28ac044b37456bb6f87fa67 Mon Sep 17 00:00:00 2001 From: "hasnain2808@gmail.com" Date: Tue, 30 Mar 2021 14:14:53 +0530 Subject: [PATCH] fix: filters in share url not working --- frappe/public/js/frappe/router.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/public/js/frappe/router.js b/frappe/public/js/frappe/router.js index c800f31d55..fd540fc3cc 100644 --- a/frappe/public/js/frappe/router.js +++ b/frappe/public/js/frappe/router.js @@ -386,6 +386,8 @@ frappe.router = { set_route_options_from_url(route) { // set query parameters as frappe.route_options var last_part = route[route.length - 1]; + // add routing v2 compatability + if (!last_part.includes("?")) last_part = route[route.length - 1] + window.location.search if (last_part.indexOf("?") < last_part.indexOf("=")) { // has ? followed by = let parts = last_part.split("?");