I want to have the user redirected to the login page if they are are another page and are not logged in.
Based on Requiring login? (SOLVED) - #4 by ethan, I created a reusable header that has a General workflow whose When condition is if the Current User Is not Logged In, and then it should navigate to the login page.
I put it in a reusable element so that I can just put it in every page and was hoping it would just work.
Now, the workflow seems to get triggered, and in stepping through the workflow I see it act like it is about execute the Navigate action, but it doesn’t actually navigate anywhere.
thx - I changed it to the page_load and navigate when the current user hnot logged in (for some reason have to add the action twice, as first one does not do anything).
Do you get a flash of content of the page before it navigates to the login screen? I’ve got this in a reusable header that I was intending to put on all non-login pages. Wondering if one needs to do something extra to avoid the content being shown for the non-logged-in user
Yeah, I also get a flash of content before the user is redirected away and I would much rather nothing load at all if the right user isn’t logged in. Is there some special way we’re supposed to achieve this?