Closed sparkica closed 9 years ago
Looking good, great job! :+1:
A few minor comments:
past=yes
for the past filter, the new search uses past=on
. Can you please switch back to past=yes
for consistency? We've already shared links with past=yes
, so it might be better to keep it that way :)
I think it was something with serialization, but no problem @sparkica can easily change that constant.
@gandalfar Not quite sure what you're asking. Take a look at the History repo, this is from their documentation:
So if I understand correctly, we don't need any extra JS code to handle hashbangs.
@sparkica try this url in IE9: /search/#?q=&country=SI&past_events=on
and you'll see that you don't get correct results because hashbang part of URL is not sent to server.
See detailed list of issues with hashbangs from their URL: https://github.com/browserstate/history.js/wiki/Intelligent-State-Handling
I would propose to drop html4 history rewriting support and either do full refresh of page url or not bother with history rewriting for old browsers.
@gandalfar Thanks for clarification (I don't have access to IE9 right now), I'll will figure something out.
@sparkica download IE9 from https://www.modern.ie/en-us
Working on it :+1: Did a little research.
@ialja I've replaced all the past='yes' values to past=on. When using GET and Django forms checkboxes, True is converted to 'on' and False to 'off' by default. This way we can avoid serialization issues.
Well... it seems we already have modernizr included, I'll use it then.
this was reverted, because of bugs... please create a new PR (found issues will be written)
Sorry about creating a second PR, but the first one was a mess. @gandalfar please take a look at this one.