(Sorry for the crossposting, but I got no answer in the general developer forum and I thought I might have picked the wrong forum)
I use a custom theme with a login on every page with the code derived from the login block. Now since the login block is usually meant only for the frontpage, the user is redirected to the frontpage after login, not using the $SESSION->wantsurl to redirect to where the user came from.
I already tried setting $_SESSION['wantsurl'] to $_SERVER['REQUEST_URI'] in the page with the login-form and echo'ing $_SESSION['wantsurl'] after that shows the right value is in there. But it still doesn't get picked up by /login/index.php
I think I have the right concept, but still nothing works. Once I had it working but then the other ways of logging in didn't work anymore.
Thanks in advance for any helpful input