From f0b210f5206a992588cc6ee08856284c7fdc909c Mon Sep 17 00:00:00 2001 From: Michelle Chen Date: Wed, 22 May 2024 13:03:39 -0400 Subject: [PATCH] bring back location header --- .../app/routes/account_.register.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/legacy-customer-account-flow/app/routes/account_.register.tsx b/examples/legacy-customer-account-flow/app/routes/account_.register.tsx index 438ca30f87..2bfa62a39e 100644 --- a/examples/legacy-customer-account-flow/app/routes/account_.register.tsx +++ b/examples/legacy-customer-account-flow/app/routes/account_.register.tsx @@ -89,6 +89,9 @@ export async function action({request, context}: ActionFunctionArgs) { {error: null, newCustomer}, { status: 302, + headers: { + Location: '/account', + }, }, ); } catch (error: unknown) {