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() { tryRestoreLastUrl() {
const lastNavPath = this._urlAsNavPath(this._history.getLastUrl() || ""); const lastNavPath = this._urlAsNavPath(this._history.getLastUrl() || "");
if (lastNavPath.segments.length !== 0) { if (lastNavPath.segments.length !== 0) {
this._applyNavPathToNavigation(navPath); this._applyNavPathToNavigation(lastNavPath);
return true; return true;
} }
return false; return false;