How Direct User to Last Page after login/singup

I’m using the Facebook plugin to login/singup. I’ve placed my forms on a /singup & a /login page.

For the workflow I imagine someone landing on a content page, hitting login/singup, going to the singup/login, going to FB & back again authenticated to the /singup or /login page… at this point I’d like to redirect the user to the page they originally saw. Thoughts?

update: perhaps I could just have a list of “recently viewed pages”? If so how would I set those?

I guess the last page would be previous page. You can find that option available in Bubble Workflow.