Hi Bubble community,
I have set up a workflow for users to login as follows: ‘When Page is loaded and Current User isn’t logged in’ >> ‘Show login popup’. I have also set up a logout workflow on the same page as follows: ‘When Button logout is clicked’ >> ‘Log the user out’ >> ‘Go to page index’. Unfortunately, after the Current User is logged out, the page seems to be reloading, which appears to be triggering the login workflow before the ‘Go to page index’ can be executed and as a result the login popup appears and the logged out user is not redirected to page index.
I can get around this problem by building a separate page for the login but I am wondering if I am missing something obvious. Any insights or suggestions?