visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.68k stars 688 forks source link

ctx.pathname contains hash #375

Closed j0hj0h closed 6 years ago

j0hj0h commented 8 years ago

When linking to an URL with hash like /something/#else then ctx.pathname contains the hash portion. See the fiddle: https://jsfiddle.net/su2qfjnv/1/

So ctx has no property holding the blank pathname, as ctx.path has the querystring appended. Think this is a bug, or am I missing something?