0
I am the nodejs along with the expressjs and in the submission of a form a request is made on the server, which after processed, redirects the page:
...
Post.create(doc, (err, post) => {
if (err || !post) {
return res.json({
status: 'error',
error: err
});
}
post.save()
res.redirect('/minha-url')
});
...
But the redirect is not done, although in the devtools panel of Chrome, in the networking tab the redirect appears with status 200, as a request.
I don’t understand what the problem is.
I appreciate any help.
You’re doing a post with
action
form? You can join HTML?– Sergio