How to restrict a page only to logged in user and then redirect back

Instead of “Page Load” event, try out the “User is logged out” event as described in the thread below. That’s a better solution for the first part of sending to login page.

Restricting App to Logged in users only - Need help - Bubble Forum