Choosing a selection results in a full page refresh.
Opens in a new window.
Thinking: I've created an updated version that runs immediately (before DOM loads) to catch the homepage redirect faster. The key changes are:
1. Wrapped the homepage check in an IIFE that executes immediately
2. Uses window.location.pathname instead of the full URL to avoid protocol/case issues
3. Checks if pathname === '/' or pathname === ''
This should work now. Let me present the code to the user.
The issue was the redirect was waiting for DOMContentLoaded. Here's the fixed version that redirects immediately: