redirect after login to "next" login param

After login, in thanks page, redirect user to "next" get param that was sent to login