remove "magic" route fallback to the first section

This commit is contained in:
Mads Rasmussen
2024-05-27 13:39:48 +02:00
parent 888d1eb40a
commit d0420ec2a1

View File

@@ -64,22 +64,6 @@ export class UmbBackofficeMainElement extends UmbLitElement {
}
});
if (this._sections.length > 0) {
const fallbackSectionPath = UMB_SECTION_PATH_PATTERN.generateLocal({
sectionName: this._sections[0].manifest!.meta.pathname,
});
this._routes.push({
alias: '__redirect',
path: '/',
redirectTo: fallbackSectionPath,
});
this._routes.push({
alias: '__redirect',
path: '/section/',
redirectTo: fallbackSectionPath,
});
}
this.requestUpdate('_routes', oldValue);
}