This is a very small module that ensures a persistent destination parameter on user login and register pages.
This module will alter the local task links on the user login page (that are usually login, register and password reset) and preserves the "destination" parameter, if present.