Currently, I am in the process of creating a website solely for educational purposes, focusing on articles.
After a user adds a new article, the intended action is to redirect them back to the homepage seamlessly.
Upon testing this functionality and adding a new article, I noticed that it only appears on the homepage after a manual refresh. It seems that the res.redirect()
function is simply sending me back to the previously loaded homepage instead of properly activating the route. Is there an alternative method like refresh()
that I should be implementing?
Thank you in advance for any insights!