From 3b46578621f19c46619ffa6e0969d2602452dd99 Mon Sep 17 00:00:00 2001 From: Nicolas Parquet Date: Fri, 9 Feb 2018 16:17:40 +0100 Subject: [PATCH] Fix main pages customization Co-authored-by: fvn-linagora --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index e803a829e..a7830cbaf 100644 --- a/server.js +++ b/server.js @@ -117,6 +117,7 @@ Fs.exists(__dirname + "/customize", function (e) { var mainPages = config.mainPages || ['index', 'privacy', 'terms', 'about', 'contact']; var mainPagePattern = new RegExp('^\/(' + mainPages.join('|') + ').html$'); +app.get(mainPagePattern, Express.static(__dirname + '/customize')); app.get(mainPagePattern, Express.static(__dirname + '/customize.dist')); app.use("/blob", Express.static(Path.join(__dirname, (config.blobPath || './blob')), {