Fix browser back button

Fixes #17108

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-10-21 21:36:17 +02:00
parent 923735021b
commit 87c2ab3ffa
No known key found for this signature in database
GPG Key ID: F941078878347C0C
7 changed files with 459 additions and 431 deletions

12
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

857
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 @@ import { registerAppsSlideToggle } from './OC/apps'
$(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))
}
})