mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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;
|
||||
}
|
||||
|
||||
// Load the panel then call the next route.
|
||||
// Load the panel and stop processing routes.
|
||||
$('.cms-container')
|
||||
.entwine('ss')
|
||||
.handleStateChange(null, ctx.state)
|
||||
.done(next);
|
||||
.handleStateChange(null, ctx.state);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -529,8 +529,8 @@ $.entwine('ss', function($) {
|
||||
this.setPauseState(true);
|
||||
|
||||
// Restore best last state
|
||||
if (lastState !== null) {
|
||||
window.ss.router.show(lastState.url);
|
||||
if (lastState && lastState.path) {
|
||||
window.ss.router.show(lastState.path);
|
||||
} else {
|
||||
window.ss.router.back();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user