Redirect Login is a plugin used on protected pages that redirects the user to your login page and then automatically on login redirects the user back to the protected page (origin page).
It is dynamic, and can be set from any page. It allows for seamless redirection of users to a login page when attempting to access protected content. No logic or actions need to be added to the protected page or the login page.
For example, if a user goes directly to yourapp.com/account or yourapp.com/messages, the plugin would catch that and redirect the user to login then back to the respective origin, either the account or messages page, without any workflows.
You can dynamically set the login page along with the criteria the user must match to see the page, for example, the user must be logged in and have their role set to "Staff".
Demo:
https://brandarrow.bubbleapps.io/version-test/redirect_loginDemo Editor:
https://bubble.io/page?id=brandarrow&test_plugin=1711238575681x396314668901335040_current&tab=tabs-1&name=redirect_login&type=page&wf_item=bTIUV