Not able to be redirected to login page on brand new Rails 7 application

I have the same problem with Rails 7. The login button doesn’t work. However if I duplicate the button it does work sometimes. I believe it’s something to do with the turbo library, but don’t have a solution yet