web: fix /-/user/ not loading

This commit is contained in:
Jens Langhammer 2021-02-21 19:03:40 +01:00
parent dc680a3385
commit 74c0ed27ba
2 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export class Router404 extends LitElement {
<i class="fas fa-question-circle pf-c-empty-state__icon" aria-hidden="true"></i>
<h1 class="pf-c-title pf-m-lg">${gettext("Not found")}</h1>
<div class="pf-c-empty-state__body">
${gettext(`The url '${this.url}' was not found.`)}
${gettext(`The URL '${this.url}' was not found.`)}
</div>
<a href="#/" class="pf-c-button pf-m-primary" type="button">${gettext("Return home")}</a>
</div>

View File

@ -27,6 +27,7 @@ import "./pages/stages/PromptListPage";
import "./pages/system-tasks/SystemTaskListPage";
import "./pages/tokens/TokenListPage";
import "./pages/users/UserListPage";
import "./pages/generic/SiteShell";
export const ROUTES: Route[] = [
// Prevent infinite Shell loops
@ -68,4 +69,7 @@ export const ROUTES: Route[] = [
new Route(new RegExp("^/outpost/outposts$"), html`<ak-outpost-list></ak-outpost-list>`),
new Route(new RegExp("^/outpost/service-connections$"), html`<ak-outpost-service-connection-list></ak-outpost-service-connection-list>`),
new Route(new RegExp("^/crypto/certificates$"), html`<ak-crypto-certificatekeypair-list></ak-crypto-certificatekeypair-list>`),
new Route(new RegExp("^/-/user/$"), html`<ak-site-shell url="/-/user/">
<div slot="body"></div>
</ak-site-shell>`),
];