mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
redirect to index.html - single page
This commit is contained in:
@@ -36,7 +36,7 @@ var server = http.createServer(function (req, res) {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
var filename = pathname.substr(1);
|
var filename = pathname.substr(1);
|
||||||
if(filename === ''){
|
if(filename === '' || filename.indexOf('.') === -1){
|
||||||
filename = 'index.html';
|
filename = 'index.html';
|
||||||
}
|
}
|
||||||
// Read the requested file content from file system
|
// Read the requested file content from file system
|
||||||
|
Reference in New Issue
Block a user