diff --git a/server/routes/basepath.js b/server/routes/basepath.js index 96e9829..a8fb0bb 100644 --- a/server/routes/basepath.js +++ b/server/routes/basepath.js @@ -12,7 +12,7 @@ router.get("/*", function(req, res, next) { const parts = url.parse(req.url), basePath = req.app.get("basePath"); - if (!/\/[^/]+\.html$/.exec(parts.pathname)) { + if (!/^\/[^/]+\.html$/.exec(parts.pathname)) { return next(); }