If you're on / and submit a form to /register the URL doesn't change.
The new page loads as if you were on /register (but the URL is still on /).
This means that if you don't specify a form to submit to a specific URL (e.g. the form on /register is just submitting to itself) the browser will try to submit to whatever is in the browser URL.
My scenario:
Homepage has a register form that submits to /register
User submits and if it results in an error, a 422 Response Code is returned which updates the dom (but the url doesn't change).
The register page is a simple form (below)
User fixes validation error on /register and clicks submit
The form is now submitted to "/" and is not handled because the form needs to be handled by "/register"
As a temporary fix, I have specified the action on the registration page. However, I'd imagine that the URL should be updated when a form error occurs if the path is different?
If you're on / and submit a form to /register the URL doesn't change.
The new page loads as if you were on /register (but the URL is still on /).
This means that if you don't specify a form to submit to a specific URL (e.g. the form on /register is just submitting to itself) the browser will try to submit to whatever is in the browser URL.
My scenario:
As a temporary fix, I have specified the action on the registration page. However, I'd imagine that the URL should be updated when a form error occurs if the path is different?