mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Fix route invoking multiple handleStateChanges on single navigation actions
BUG Fix reference to non-existant window.history.state.url property
This commit is contained in:
parent
d54f4dc9c6
commit
7d82304bb0
@ -95,11 +95,10 @@ function appBoot() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the panel then call the next route.
|
// Load the panel and stop processing routes.
|
||||||
$('.cms-container')
|
$('.cms-container')
|
||||||
.entwine('ss')
|
.entwine('ss')
|
||||||
.handleStateChange(null, ctx.state)
|
.handleStateChange(null, ctx.state);
|
||||||
.done(next);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -529,8 +529,8 @@ $.entwine('ss', function($) {
|
|||||||
this.setPauseState(true);
|
this.setPauseState(true);
|
||||||
|
|
||||||
// Restore best last state
|
// Restore best last state
|
||||||
if (lastState !== null) {
|
if (lastState && lastState.path) {
|
||||||
window.ss.router.show(lastState.url);
|
window.ss.router.show(lastState.path);
|
||||||
} else {
|
} else {
|
||||||
window.ss.router.back();
|
window.ss.router.back();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user