From 8fae7d1c345359dfad1db951ec87fce8e9f72543 Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Thu, 14 Jul 2016 20:50:38 +0100 Subject: [PATCH] redirect to index.html - single page --- demo-shell-ng2/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo-shell-ng2/app.js b/demo-shell-ng2/app.js index db02f7ac17..87f3660c7a 100644 --- a/demo-shell-ng2/app.js +++ b/demo-shell-ng2/app.js @@ -36,7 +36,7 @@ var server = http.createServer(function (req, res) { }); } else { var filename = pathname.substr(1); - if(filename === ''){ + if(filename === '' || filename.indexOf('.') === -1){ filename = 'index.html'; } // Read the requested file content from file system