Hacker News new | ask | show | jobs
by arnel 4247 days ago
It's the permalink.

Every time you click on a checkbox the permalink is change according to the permission, so its easier to copy the permalink. Therefore when you click the back button you're going to the previous state.

Do you think its not a good behavior?

2 comments

When I click "back" I expect to return to a previous webpage. I don't expect to uncheck a checkbox.

edit: Actually it doesn't uncheck, it just changes the permalink as if I unchecked. Definitely not the expected behavior. (this is on FF31 Linux)

You can use replaceState to modify the url without adding a new history entries.
Thanks for the comments.

I fixed it - and now its work with replaceState.

It's won't update until you load it without cache: ctrl+shift+R