From 378a13a5328e7d1ebaac8cb727e185644845b8d6 Mon Sep 17 00:00:00 2001 From: joh Date: Thu, 26 May 2016 20:23:19 +0200 Subject: [PATCH] remove hash from ctx.pathname Fixes #375 by removing hashportion of pathname the same way it's done for ctx.path. Maybe Route.prototype.match also needs to be updated ... not sure about this. --- page.js | 1 + 1 file changed, 1 insertion(+) diff --git a/page.js b/page.js index 1b9a3820..db45b1c0 100644 --- a/page.js +++ b/page.js @@ -401,6 +401,7 @@ this.path = parts[0]; this.hash = decodeURLEncodedURIComponent(parts[1]) || ''; this.querystring = this.querystring.split('#')[0]; + this.pathname = this.pathname.split('#')[0]; } }