{% requireLogin %} not returning to original page According to the Craft docs {% requireLogin %} on a page should return the user to the same page after login. This doesn't work for me - the returned page is always the one set in 'postLoginRedirect'.

In the config file, I've got this setup:

    'postLogoutRedirect' =&gt; 'members/logout',

    'postLoginRedirect' =&gt; 'members',

    'loginPath' =&gt; 'members/login'


What am I missing?
I may be missing something here, but you probably just want to remove the postLoginRedirect setting from the config?
You could also try adding {{ redirectInput(craft.app.user.returnUrl) }} to the form.
craft.app.user.returnUrl should return the URL that triggered the login.