wix-Users.currentUser.loggedIn Not functioning properly

In the home page i have set it to redirect to the login page if the user is not signed in. But it would first redirect it to the login page. And then according to the code in the Login Page it would be directed back. This happens only once. I don’t understand what is wrong.

I hope someone could help me out. Thanks in advance!

1 Like