Hello everyone, I hope you are well.
I will ask a quick question. The image below is the “my_profile” page when the user logs in. My question is when the user logs out and types www.website.com/my_profile, this admin page opens again.
What I want to do is, when the user is not logged in on such special pages, I want to direct them to the register or login page when the url is entered.
I love you all very much, thank you
1 Like
Add a ‘page is loaded’ workflow event, on the event condition, add ‘Current user is logged out’. Then, add a Go to page action (whatever page you want)
1 Like
thank you very much for quick and helpful respond
I’ve found these still briefly load the page, then do the workflow action. I now use ‘When user is logged out’ and immediately redirect. I’ve found these are faster and don’t ‘flash’ a page that is not intended for logged out users. But, I am going against George Collier! just sharing my experience with the two different approaches.
1 Like
thank you very much for yur reply sir. It means a lottt
You’re describing a client-side redirect.
A simple workflow as follows will always server-side redirect:
Though, interestingly, I’ve worked out that server-side redirects can still be bypassed… but that’s a story for another day…
2 Likes
I knew it was unwise to question you
2 Likes
ahhaahah nice respond thank you guys both