Home page redirection now works correctly