I've searched the forums -- I noticed a lot of people asking about redirect to last page visited after login, and also see that it has now been implemented in the core (nice work).
What I haven't found is how to redirect to the last page visited after registration. I'm using the logintoboggan module which allows you to set a static redirect after login -- alas it's static, not the last page visited.
ONE possible approach: I'm thinking the idea might be to edit the registration email to provide a link to the last page visited (whereupon they will be asked to login, can use their new username and password, and then will be taken to their last page due to the new redirect after login functionality). There is a session variable which contains the last page visited. So the question is how do I get that session variable into the registration email (which currently has certain preset variables you can use but not the last page visisted).