diff --git a/page.js b/page.js index 1b9a3820..4391b06f 100644 --- a/page.js +++ b/page.js @@ -594,6 +594,10 @@ path = path.substr(base.length); } + if (orig.indexOf('.') === 0) { + orig = orig.replace(/^\./, base); + } + if (hashbang) path = path.replace('#!', ''); if (base && orig === path) return;