fix undefined variable, this probably breaks restoring the last url

This commit is contained in:
Bruno Windels 2021-05-20 11:11:07 +02:00
parent eb8fdf5c27
commit 1f17edc248

View file

@ -86,7 +86,7 @@ export class URLRouter {
tryRestoreLastUrl() {
const lastNavPath = this._urlAsNavPath(this._history.getLastUrl() || "");
if (lastNavPath.segments.length !== 0) {
this._applyNavPathToNavigation(navPath);
this._applyNavPathToNavigation(lastNavPath);
return true;
}
return false;