From 6dbd838ca4ef453fb35c49ea70032ec9299382ec Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 19 Aug 2025 22:23:20 +0100 Subject: [PATCH] refactor: Remove mobile redirect script from homepage for cleaner code --- Home/Views/index.ejs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Home/Views/index.ejs b/Home/Views/index.ejs index 5467875761..b75cd1d4b5 100644 --- a/Home/Views/index.ejs +++ b/Home/Views/index.ejs @@ -117,15 +117,6 @@ }); } - // Mobile redirect helper - if JS is available and we detect mobile, redirect to dashboard - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile Safari|Mobile/i.test(navigator.userAgent)) { - // Small delay to avoid redirect loops and let server handle first - setTimeout(() => { - if (window.location.pathname === '/' && !window.location.search.includes('no-mobile-redirect')) { - window.location.href = '/dashboard'; - } - }, 100); - }