Return to a page after login

Hi All,

I am hoping someone can help me here. This might have already been answered already, but I could not find anything in the community.

I am using a security restrict server action to protect pages from not logged-in users. I want the users to be sent to the page there were trying to access after the login action is successful. Currently, I have a login server action setup that takes users to a defined page which is a default page (like a user dashboard)

Any tips tricks or documentation would be appreciated. Thanks

Cheers and have a great weekend ahead everyone :slight_smile:

This should help

This should help more: