Exclude favicon from language redirector

This commit is contained in:
Kevin Kandlbinder 2020-12-23 14:53:42 +01:00
parent c9088ade96
commit 4b92fc0ed2

View file

@ -13,7 +13,7 @@ async function checkLang({ request }) {
let requestURL = new URL(url);
if(requestURL.pathname.startsWith("/assets") || requestURL.pathname.startsWith("/icons") || requestURL.pathname.startsWith("/manifest.webmanifest")) {
if(requestURL.pathname.startsWith("/assets") || requestURL.pathname.startsWith("/icons") || requestURL.pathname.startsWith("/manifest.webmanifest") || requestURL.pathname.startsWith("/favicon")) {
return;
}