1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-03 05:02:34 +02:00

Added Nginx config section to README (issue #1).

Fixed regression with hash fallback.
This commit is contained in:
Chung Leong
2019-02-06 21:37:54 +01:00
parent 8ab4280aa0
commit 78c9c2d227
7 changed files with 267 additions and 6 deletions

View File

@@ -102,6 +102,9 @@ async function handlePageRequest(req, res, next) {
try {
let path = req.url;
if (path === '/favicon.ico') {
// while the HTML template contains a link tag that suppress the
// loading of favicon.ico, the browser could ask for it still if
// the page fails to load
let err = new Error('File not found');
err.status = 404;
throw err;