Hello,
I use smart action to set some filters in an other view, this one response with:
return res.send({
redirectTo: `${process.env.URL_FOREST}/Operations/data/careGiver/index?filterType=and&${filter}`,
});
Log in “Network” of my browser :
{"redirectTo":"/click-and-care-backoffice/Development%20%7C%20justinmartin/Operations/data/careGiver/index?filterType=and&beneficiaryReference_filter[0][val]=2&beneficiaryReference_filter[0][op]=is&certificate:name[0][val]=,Assistante%20maternelle&certificate:name[0][op]=is%20in&distance_filter[0][val]=jusqu'à 10km&distance_filter[0][op]=is"}
When browser make redirection it load the “careGiver” collection and send “GET” request with theses filters perfectly
Log in “Network” of my browser :
But in the dashboard the filters list still empty instead of to be set with my filters. If you have an idea of something I’ve done wrong I’d love to hear it.
In first i thought this problem was because redirectTo
not preserving query params but, as we can see the dashboard use the params to send “GET” request…