Skip to content

Commit

Permalink
Making website
Browse files Browse the repository at this point in the history
Signed-off-by: DefinetlyNotAI <[email protected]>
  • Loading branch information
DefinetlyNotAI committed Nov 29, 2024
1 parent 9eb785e commit 2f8c930
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Website/js/favicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ document.addEventListener('DOMContentLoaded', function () {
const currentUrl = window.location.href;
const urlPath = window.location.pathname;

if (currentUrl.includes('wesmun.com') && !urlPath.endsWith('.html')) {
window.location.href = currentUrl.replace('.html', '');
if (currentUrl.includes('wesmun.com')) {
if (urlPath.includes('.html')) {
window.location.href = currentUrl.replace('.html', '');
}
if (urlPath.endsWith('/index')) {
window.location.href = currentUrl.replace('/index', '');
}
}
});

Expand Down

0 comments on commit 2f8c930

Please sign in to comment.