-
Notifications
You must be signed in to change notification settings - Fork 88
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 error from front page postcode form #285
Comments
(I hasten to add that I in no way actually need that page to work, but I figure it wants logging.) |
|
That code does work on mapit.mysociety.org:
Ah, if you include a non-alphanumeric/space character, then the
We should strip those characters first, presumably. |
3-line patch submitted for review |
OK yes, just changing the one problematic line is a better (and also functional) solution. :) |
Thanks for spotting! |
(Version: current master, UK configuration and data, brand new install.)
Something (and I am unable to tell exactly what, sorry) causes the front-and-centre postcode lookup form POSTed to mapit.views.postcodes.postcode to fail, and redirect incorrectly to a 404 for
http://mapithost.domain.tld/postcode/mapit.views.postcodes.postcode
Possibly a missing reverse() function on the urlconf?
The text was updated successfully, but these errors were encountered: