First rewrite of the redirect method using RedirectResponse