I'm trying to password protect a staging site. So I've put a {% requireLogin %} at the top of my _layout.html inside of a conditional tag. It's working except the redirect after login always goes to the dashboard instead of the original page. What am I doing wrong?
I'm aware of the possibility of using htaccess protection, but I think doing it the "Craft way" is nicer.