I have a react client and I would like to be able to redirect from the express backend.
I've looked through a couple of posts and putting redirect into the body of the response didn't work out. If possible it would be great to redirect on the backend response to the redirect inside the response.
I could maybe replace history with the redirect url inside the response, but I am not sure if that was going to be a good solution ...
The appropriate answer seems to be that you listen in react for a body property on the backend apis' response and then redirect to the url specified in the body. I asked because I assumed that React would have something built in for that (and I couldn't find that functionallity :) ).