fix: encoding find my booking cookie since next decodes when parsing
this is done in order to handle emails containing plus signs
This commit is contained in:
committed by
Michael Zetterberg
parent
550474dffe
commit
1a8a57599c
@@ -36,7 +36,7 @@ export default function FindMyBooking() {
|
||||
onSuccess: (result) => {
|
||||
const values = form.getValues()
|
||||
const value = new URLSearchParams(values).toString()
|
||||
document.cookie = `bv=${value}; Path=/; Max-Age=30; Secure; SameSite=Strict`
|
||||
document.cookie = `bv=${encodeURIComponent(value)}; Path=/; Max-Age=30; Secure; SameSite=Strict`
|
||||
router.push(
|
||||
`/${lang}/hotelreservation/my-stay/${encodeURIComponent(result.refId)}`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user