Skip to content

Commit

Permalink
Fix query string
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Jan 3, 2025
1 parent a6177a0 commit 85b6e48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/api/hold/request/[id]/edd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
)}`
const formStateQuery = `formState=${JSON.stringify(formState)}`

const invalidFormRedirectUrl =
encodeURI(`${BASE_URL}${PATHS.HOLD_REQUEST}/${holdId}/edd?
)}&${formInvalidQuery}&${validatedFieldsQuery}&${formStateQuery}`)
const invalidFormRedirectUrl = encodeURI(
`${BASE_URL}${PATHS.HOLD_REQUEST}/${holdId}/edd?${formInvalidQuery}&${validatedFieldsQuery}&${formStateQuery}`
)

return res.redirect(invalidFormRedirectUrl)
}
Expand Down

0 comments on commit 85b6e48

Please sign in to comment.