Updated to redirect to the current absolute URL after login