From 85108ec5e03f148fe40f565acc33e50831f807d5 Mon Sep 17 00:00:00 2001 From: Marc Bachmann Date: Thu, 28 Dec 2017 01:24:58 +0100 Subject: [PATCH] Fix routing inconsistencies --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f5c77ea..47174a3 100644 --- a/index.js +++ b/index.js @@ -35,10 +35,10 @@ function Nanorouter (opts) { } function emit (route) { + route = pathname(route, isLocalFile) if (!curry) { return router(route) } else { - route = pathname(route, isLocalFile) if (route === prevRoute) { return prevCallback() } else {