Here's a patch that redirects after login. It works with user/login. I tried to get it to work with the standard user login block, but wasn't successful. (Thus, there's a commented section in settings so people using this patch as is won't be confused). A site was trying to use logintoboggan and login_destination.module, but they conflicted with each other. So this tries to roll some of that functionality into logintoboggan.
Disclaimer: I didn't actually look to see how login_destination does it, so that solution may be cleaner and more easily rolled into this module for sites with similar needs.
| Comment | File | Size | Author |
|---|---|---|---|
| logintoboggan_redirect_login.diff.txt | 3.96 KB | aaron |
Comments
Comment #1
aaron commentedoops :) forgot status
Comment #2
hunmonk commentedthe code looks ok, but i don't want to include this functionality in LT, for a couple of reasons:
Comment #3
gregglesJust to "close the loop" there is now such a module: Login Destination. It's pretty simple and even requires editing the module file instead of having a settings page, but it provides this functionality.