MyOmeka login to previous page - not dashboard

I can see that a MyOmeka logout makes sense to go to the home page. However, a login does not necessarily make sense to go to the dashboard. Is there somewhere I can make login go to the previous page? In most cases that would be back to the last item shown, although sometimes it could be back to the home page. Throwing the user to the dashboard is too abrupt, especially if they happened to be a new user. I have my theme's item show set up for MyOmeka notes and tags for registered users, plus comments/discussion for Contributors. 1.5.1.