From 83db5706a6dc00be8a5cb98a03d83a9795232e4b Mon Sep 17 00:00:00 2001 From: aliraad79 Date: Wed, 15 Dec 2021 12:44:52 +0330 Subject: [PATCH] fix:Omit query and hash part if both apears in path --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 925b253..8f551ca 100755 --- a/index.js +++ b/index.js @@ -694,6 +694,7 @@ this.hash = ''; if (!hashbang) { if (!~this.path.indexOf('#')) return; + if (this.path.indexOf('?') > -1) return; var parts = this.path.split('#'); this.path = this.pathname = parts[0]; this.hash = _page._decodeURLEncodedURIComponent(parts[1]) || '';