🐛 Fix wrong favicon path #841

This commit is contained in:
Jan Oberhauser 2020-08-14 23:20:07 +02:00
parent 070dfd6cde
commit 228d97d65c

View file

@ -1801,7 +1801,7 @@ class App {
let readIndexFile = readFileSync(filePath, 'utf8');
readIndexFile = readIndexFile.replace(/\/%BASE_PATH%\//g, n8nPath);
readIndexFile = readIndexFile.replace(/\/favicon.ico/g, `${n8nPath}/favicon.ico`);
readIndexFile = readIndexFile.replace(/\/favicon.ico/g, `${n8nPath}favicon.ico`);
// Serve the altered index.html file separately
this.app.get(`/index.html`, async (req: express.Request, res: express.Response) => {