diff --git a/Website/js/favicon+urlpretty.js b/Website/js/favicon+urlpretty.js index 4446e39..2acd780 100644 --- a/Website/js/favicon+urlpretty.js +++ b/Website/js/favicon+urlpretty.js @@ -16,7 +16,8 @@ document.addEventListener('DOMContentLoaded', function() { if (currentUrl.includes('weshack.me')) { if (urlPath.includes('.html')) { window.location.href = currentUrl.replace('.html', ''); - } else if (urlPath.endsWith('/index')) { + } + if (urlPath.endsWith('/index')) { window.location.href = currentUrl.replace('/index', ''); } }