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

support form with ? as action #72

Open
mayel opened this issue Apr 29, 2024 · 2 comments
Open

support form with ? as action #72

mayel opened this issue Apr 29, 2024 · 2 comments

Comments

@mayel
Copy link

mayel commented Apr 29, 2024

Having a form with action="?" should submit to the current path but instead leads to a 404: no route found for POST /

@mayel
Copy link
Author

mayel commented Apr 29, 2024

same with action="#"

@germsvel
Copy link
Owner

Yeah, those are interesting. I think those forms of submitting forms to the current path are left over from before the HTML standard made <form> not require an action.

But I think we should support that (PhoenixTest itself requires an action, since that's probably what people want). I'd love a PR if you're up for it. Otherwise, I'll try to get that when I can.

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

2 participants