Merge pull request #17638 from nextcloud/backport/stable17/17627

[stable17] Fix browser back button
This commit is contained in:
Roeland Jago Douma 2019-10-22 15:50:30 +02:00 committed by GitHub
commit cd6fa7e245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 314 additions and 285 deletions

14
core/js/dist/login.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

560
core/js/dist/main.js vendored

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

View File

@ -35,4 +35,11 @@ $(document).ready(function () {
initCore();
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));
}
})