root redirect

This commit is contained in:
Niels Lyngsø
2023-05-30 15:47:44 +02:00
parent 2c04468267
commit 9c8d388658

View File

@@ -60,6 +60,14 @@ export class UmbBackofficeMainElement extends UmbLitElement {
};
}
});
if (this._sections.length > 0) {
this._routes.push({
alias: '__redirect',
path: '',
redirectTo: 'section/content',
});
}
}
private _onRouteChange = (event: UmbRouterSlotChangeEvent) => {