Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Passing data from one page to another using redirect. #248

Open
fahdjamy opened this issue Jan 18, 2020 · 0 comments
Open

Passing data from one page to another using redirect. #248

fahdjamy opened this issue Jan 18, 2020 · 0 comments

Comments

@fahdjamy
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant