Hacker News new | ask | show | jobs
by bobwaycott 4730 days ago
I like the idea and intent.

However, why have you broken the back button? This should never be allowed to happen except in very carefully decided situations (say, preventing a user from going backward in a workflow that could provide undesired results).

Is this intentional or an accident?

3 comments

Where are you at that it's breaking? What browser? It seems to be working ok for me (chrome). Anyone else experiencing this problem?

Edit: I see what you mean. I'm looking into a solution.

Chrome 27 on Snow Leopard: clicking the link from HN takes me to the page, but hitting the back button doesn't bring me back to HN, it looks like it tries to takes me back to countryaday.org which then redirects to countryaday.org/#/welcome
Same on Chrome/Linux. Looks like you're using push/popState slightly incorrectly. To the parent: if you long-click the back button, you can jump to an arbitrary point in your history.
I pushed a temporary fix that (I believe) corrects this.

Unfortunately it leads to a slight UX regression in that you are no longer automatically routed to your country of the day.

Same issue using FF 21 and Ubuntu. I hit the back button and nothing happens.