fix User::getReturnUrl() after #2501