Skip to content

Commit

Permalink
fix: do not override theme specific favicon if requested from assets (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi authored Aug 30, 2022
1 parent 8a4f66e commit 8b5c5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export function app() {
}
});
});
server.get(/.*\/favicon.ico.*/, (req, _, next) => {
server.get(/^(?!\/assets\/).*\/favicon.ico.*/, (req, _, next) => {
req.url = req.originalUrl.replace(/[;?&].*$/, '').replace(/^.*\//g, '/');
next();
});
Expand Down

0 comments on commit 8b5c5e2

Please sign in to comment.