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

Document redirecting to a new page on form submission #45

Open
boardfish opened this issue Mar 26, 2021 · 2 comments
Open

Document redirecting to a new page on form submission #45

boardfish opened this issue Mar 26, 2021 · 2 comments

Comments

@boardfish
Copy link

@DaveSanders suggested that @nwjlyons' and my solution to hotwired/turbo#138 should be documented here. I figured I'd raise an issue before I pick up a PR, because this does introduce a Stimulus code example to the Turbo docs. I'm not sure whether a solution to this problem should be built into hotwired/turbo first. There's a solution in the works for Turbo alone, but I'm not sure whether that'll definitely go ahead.

@DaveSanders
Copy link

Ah good point. I hadn't considered that. Maybe this issue is good enough for the time being until things settle.

@TastyPi
Copy link

TastyPi commented Feb 8, 2022

I've created an example repo which includes a redirect to a new page and updating the form on errors https://github.com/TastyPi/turbo-forms. If the Turbo maintainers think this is a good pattern I'd be happy for it to be included in the Turbo docs.

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

No branches or pull requests

3 participants