Forum Academy Marketplace Showcase Pricing Features

Redirect to login page if current user logged out

I want to redirect a user to the login page if they are not logged on.

I have seen a topic on this already and indeed if you set up a “User is logged out” event on the page, you can redirect it to the login page. The problem is that it still loads the page and then redirects. This will actually show the page for a second before it redirects. I can of course conditionally show a group that contains all the page elements if the user is logged in and then it won’t show. This seems a bit of a workaround to me.

Is there a better way of doing this? I don’t really want to set this up on every page.

Regards, Edwin.

1 Like

Yeah yeah… unfortunatelly, this is the best way. :roll_eyes:

This topic was automatically closed after 70 days. New replies are no longer allowed.