I carried out your test, but I got the same result as before. The problem persists.
No, I do not have a cache plug-in. Should I get one?
Yes, I have the latest version of both the add-on and the plug-in.
And no, I do not have the Form Builder add-on.
Yes, the settings are correct. All https.
To clarify:
Someone tries to go to https://x.com/y/
then is shown login page
but the login link has https://x.com/membership-login?swpm_redirect_to=http%3A%2F%2Fx.com%2Fy%2F
so after logging in, is redirected to the wrong page.