Identify and resolve the issue where users visiting the home page are automatically redirected to the login page without their intent to do so. Investigate the routing logic, authentication guards, or redirect rules implemented in the application's code that may cause this behavior. Ensure that only unauthenticated users are redirected to login, while authenticated users can access the home page seamlessly. Propose a clear solution that modifies or refines the authentication flow or middleware to conditionally redirect users based on their authentication status, thereby preventing unintended automatic redirects and improving overall user experience on the home page.