Improve history/back button behavion for preview
commitc2bd1ca073b03165e707d1aaf6fa86c5293e5b26
authorAdrian Moennich <adrian.moennich@cern.ch>
Fri, 17 Jul 2015 15:51:34 +0000 (17 17:51 +0200)
committerAdrian Moennich <adrian.moennich@cern.ch>
Mon, 20 Jul 2015 09:54:48 +0000 (20 11:54 +0200)
treecc48e0b32d652eff8379b2a26ee88c0273720181
parent471e4e3361bb67e0798dd06060d1b5ae57fa4020
Improve history/back button behavion for preview

Now opening a preview link directly will replace the current history
entry with the hash-less url and then push the url containing the hash.
That way using the back button will always work, and you don't risk
going back to some other page you wouldn't expect.
indico/htdocs/js/indico/modules/attachments.js