From 6827b6b3a083a4a48f94dc754cab012aab98313e Mon Sep 17 00:00:00 2001 From: prssanna Date: Mon, 22 Mar 2021 11:58:41 +0530 Subject: [PATCH] fix: include space and tab in special characters to match to encode url --- frappe/public/js/frappe/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/router.js b/frappe/public/js/frappe/router.js index d9bd24d1b4..e4c0f0c55c 100644 --- a/frappe/public/js/frappe/router.js +++ b/frappe/public/js/frappe/router.js @@ -335,7 +335,7 @@ frappe.router = { return null; } else { a = String(a); - if (a && a.match(/[%'"]/)) { + if (a && a.match(/[%'"\s\t]/)) { // if special chars, then encode a = encodeURIComponent(a); }