How do I redirect to the same page after logging in from a protected page?

Hello,

I’ve protected one page (PAGE 1), and added another page with a login widget as a redirect page (PAGE2). My problem is, after logging in using that widget, it doesn’t redirect to PAGE 1. Is this possible? Thank you!