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
URL/body are wrong after invalid form submission #398
Comments
Hmm.... It's not wrong as such, it's just an odd side effect of the way the signup works... The initial form is |
The typical Rails pattern would be to POST to /user/new, which redirects to /user/terms on success. |
Sure - the problem is making sure we somehow preserve enough state, because we need to remember all the form data from the first page until we are ready to create the user record, which only happens after the terms have been accepted. Currently that works via hidden parameters on the terms page I think. |
Actually it looks like we create the record and save it in the session now, and only save it to disk at the very end, so we can probably rearrange this fairly easily. |
This is causing so e problems for me when trying to do things based on body classes. I can stop relying on body classes if this is a difficult problem to fix. |
@tomhughes Are you working on this? Otherwise I can take it. |
@jfire Feel free to have a go at it - it's all a bit messy though I'm afraid... |
Fixed by merging #405. |
Is this just on my local build of OSM or is this a real problem?
The content inside
body
is correct, but:user user-new
notuser user-terms
/user/new
not/user/terms
The text was updated successfully, but these errors were encountered: