web: fix /-/user/ not loading
This commit is contained in:
parent
dc680a3385
commit
74c0ed27ba
|
@ -18,7 +18,7 @@ export class Router404 extends LitElement {
|
||||||
<i class="fas fa-question-circle pf-c-empty-state__icon" aria-hidden="true"></i>
|
<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>
|
<h1 class="pf-c-title pf-m-lg">${gettext("Not found")}</h1>
|
||||||
<div class="pf-c-empty-state__body">
|
<div class="pf-c-empty-state__body">
|
||||||
${gettext(`The url '${this.url}' was not found.`)}
|
${gettext(`The URL '${this.url}' was not found.`)}
|
||||||
</div>
|
</div>
|
||||||
<a href="#/" class="pf-c-button pf-m-primary" type="button">${gettext("Return home")}</a>
|
<a href="#/" class="pf-c-button pf-m-primary" type="button">${gettext("Return home")}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,6 +27,7 @@ import "./pages/stages/PromptListPage";
|
||||||
import "./pages/system-tasks/SystemTaskListPage";
|
import "./pages/system-tasks/SystemTaskListPage";
|
||||||
import "./pages/tokens/TokenListPage";
|
import "./pages/tokens/TokenListPage";
|
||||||
import "./pages/users/UserListPage";
|
import "./pages/users/UserListPage";
|
||||||
|
import "./pages/generic/SiteShell";
|
||||||
|
|
||||||
export const ROUTES: Route[] = [
|
export const ROUTES: Route[] = [
|
||||||
// Prevent infinite Shell loops
|
// 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/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("^/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("^/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>`),
|
||||||
];
|
];
|
||||||
|
|
Reference in New Issue