Merge pull request #17638 from nextcloud/backport/stable17/17627
[stable17] Fix browser back button
This commit is contained in:
commit
cd6fa7e245
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -35,4 +35,11 @@ $(document).ready(function () {
|
||||||
initCore();
|
initCore();
|
||||||
|
|
||||||
registerAppsSlideToggle();
|
registerAppsSlideToggle();
|
||||||
});
|
|
||||||
|
// fallback to hashchange when no history support
|
||||||
|
if (window.history.pushState) {
|
||||||
|
window.onpopstate = _.bind(OC.Util.History._onPopState, OC.Util.History);
|
||||||
|
} else {
|
||||||
|
$(window).on('hashchange', _.bind(OC.Util.History._onPopState, OC.Util.History));
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue