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

Redirect after POST #11

Closed
quicoto opened this issue Aug 11, 2016 · 4 comments
Closed

Redirect after POST #11

quicoto opened this issue Aug 11, 2016 · 4 comments
Labels
needs docs Signifies that the issue requests a documentation update.

Comments

@quicoto
Copy link

quicoto commented Aug 11, 2016

Correct me if I'm wrong but at the moment you can only implement this via AJAX, right?

How hard would it be to redirect to the page that send the POST or any page for that matter? Maybe we could have a hidden input field with a URL. Then redirect to that URL after the comment has been submitted.

Thank you.

@eduardoboucas
Copy link
Owner

Agree, this makes sense. Will look into it shortly.

@eduardoboucas
Copy link
Owner

This has been implemented by #15.

You can specify a redirect URL like this:

<input type="hidden" name="options[redirect]" value="http://your-url.com">

Let me know of any issues.

@eduardoboucas eduardoboucas added needs docs Signifies that the issue requests a documentation update. and removed feature request labels Aug 11, 2016
@quicoto
Copy link
Author

quicoto commented Aug 11, 2016

It works, thank you!

@eduardoboucas
Copy link
Owner

Added to docs in eduardoboucas/staticman.net@045f535. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs docs Signifies that the issue requests a documentation update.
Projects
None yet
Development

No branches or pull requests

2 participants