diff --git a/lib/server/server.js b/lib/server/server.js index e4f6f8db20dc..f9f6468b6611 100644 --- a/lib/server/server.js +++ b/lib/server/server.js @@ -130,7 +130,7 @@ function execute(port) { // handle all requests for document pages const app = express(); - app.get(/^\/docs\/.*html$/, (req, res, next) => { + app.get(/\/docs\/.*html$/, (req, res, next) => { let url = req.path.toString().replace(siteConfig.baseUrl, ''); // links is a map from a permalink to an id for each document @@ -272,7 +272,7 @@ function execute(port) { }); // Handle all requests for blog pages and posts. - app.get(/^\/blog\/.*html$/, (req, res) => { + app.get(/\/blog\/.*html$/, (req, res) => { // Regenerate the blog metadata in case it has changed. Consider improving // this to regenerate on file save rather than on page request. reloadMetadataBlog();