redirectTo REST calls no longer works

Hello,

After the update one of our records, we do response.send({ redirectTo: redirectUrl }). With after response received by client, the client open the redirectUrl, this feature works well when we dev it. But recently the client don’t redirect:

Response return:
data:
{redirectTo: "https://api.sandbox.mangopay.com/public/mandates/e8a73d/708b8f8df31f4be68283a967e0c03c2c/confirmation"}

header:
HTTP/1.1 200 OK
X-Powered-By: Express
Access-Control-Allow-Origin: https://app.forestadmin.com
Vary: Origin
Access-Control-Allow-Credentials: true
Content-Type: application/json; charset=utf-8
Content-Length: 118
ETag: W/“76-********/BEI”
Date: Mon, 03 Oct 2022 10:48:28 GMT
Keep-Alive: timeout=5
Sozu-Id: ********

Request:
PUT /forest/lead/5e5ec10a-d661-492a-a704-56d7d0cd444a?timezone=Europe%2FParis HTTP/1.1
Accept: application/json
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7
Authorization: Bearer *********
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 564
Content-Type: application/json
Forest-Context-Url: https://app.forestadmin.com/click-and-care-backoffice/Preprod/ClicknCare/data/lead/index/record/lead/5e5ec10a-d661-492a-a704-56d7d0cd444a/summary?filter=&page=1&search=&searchExtended=false&segmentId=4fe7af90-2c90-11ed-a803-b56d437a90b6&sort=
Host: admin.preprod.clickandcare.fr
Origin: https://app.forestadmin.com
Pragma: no-cache
Referer: https://app.forestadmin.com/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
Sec-GPC: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Hello
Do you have an error in the console or any error to share it please ? :pray:
What do you use to update your record ? The redirectTo is used to redirect the user after a smart action succeed it does’t work with the simple update way.
Thanks :slight_smile:

If the redirectTo never works with update it’s not bug… we create SEPA mandat with data changed, this one have to be validated using page

Yes it does not work with the update form. If you want to use this mechanism, you should use the smart action :).
Can I close the ticket ?

1 Like