Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

post to serverside route forces client to the posts action url #1591

Open
dpatte opened this issue Aug 19, 2017 · 1 comment
Open

post to serverside route forces client to the posts action url #1591

dpatte opened this issue Aug 19, 2017 · 1 comment

Comments

@dpatte
Copy link

dpatte commented Aug 19, 2017

I have defined a serverside route and I have a client form in the same app that posts to that route (a requirement for a 3rd party api). The form works, but the client page also redirects to the specified route (which shows as empty). Can I prevent the client page from redirecting, or how can I redirect the client to a different route.

@dpatte
Copy link
Author

dpatte commented Aug 19, 2017

I have tried using this.render('home') (does nothing), and Router.go (which fails).
I know its odd with all that Meteor does without using REST that I would like to use REST to post to my own server from my client, but this is the standard protocol within in several APIs, in particular STRIPE and PAYPAL.
The issue here is that if a client side POSTS a form to the serverside route, the data does get to the serverside (works with both iron router, and with http-methods), but in both cases, the client is also redirected to that route. I hoped the client route would not be affected.

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

No branches or pull requests

1 participant