ejs icon indicating copy to clipboard operation
ejs copied to clipboard

Passing data from one page to another using redirect.

Open fahdjamy opened this issue 5 years ago • 0 comments

Can't pass data from one page to another

  • I want to be able to remain on the same page using with the same URL and but submit and data to a different API endpoint and when it is success full the page should re-render with updated information but now changing the URL.

Desired Behaviors:

I am on the page with URL http://localhost:3010/settings and I am making a POST request to back-end API URL http://localhost:3010/api/settings. When I use res.render my page's URL changes to http://localhost:3010/api/settings which I don't want, I want to stay on the same page but have updated data for my page with URL http://localhost:3010/settings

fahdjamy avatar Jan 18 '20 16:01 fahdjamy