From 74c0ed27baca51e1d022394f995d6ff705ffd7b3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 21 Feb 2021 19:03:40 +0100 Subject: [PATCH] web: fix /-/user/ not loading --- web/src/elements/router/Router404.ts | 2 +- web/src/routes.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/elements/router/Router404.ts b/web/src/elements/router/Router404.ts index 6dc3fb3d0..bef417232 100644 --- a/web/src/elements/router/Router404.ts +++ b/web/src/elements/router/Router404.ts @@ -18,7 +18,7 @@ export class Router404 extends LitElement {

${gettext("Not found")}

- ${gettext(`The url '${this.url}' was not found.`)} + ${gettext(`The URL '${this.url}' was not found.`)}
${gettext("Return home")} diff --git a/web/src/routes.ts b/web/src/routes.ts index d30eb5f0f..00ad3530c 100644 --- a/web/src/routes.ts +++ b/web/src/routes.ts @@ -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``), new Route(new RegExp("^/outpost/service-connections$"), html``), new Route(new RegExp("^/crypto/certificates$"), html``), + new Route(new RegExp("^/-/user/$"), html` +
+
`), ];