visionmedia / page.js

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

Context `path` and `state.path` not equal #524

Open PaulMaly opened 5 years ago

PaulMaly commented 5 years ago

Looks like some inconsistency:

ctx.path !== ctx.state.path;
ctx.pathname === ctx.state.path;

Is it correct behavior?