From 1e6018cac2e1a1b82cd80cca009eafa6894c2fac Mon Sep 17 00:00:00 2001 From: "Jens L." Date: Thu, 9 Jan 2025 14:22:55 +0000 Subject: [PATCH] core: fix error when creating new user with default path (#12609) Signed-off-by: Jens Langhammer --- web/src/admin/users/UserListPage.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/admin/users/UserListPage.ts b/web/src/admin/users/UserListPage.ts index 7db5aae60a09..64ee851eadea 100644 --- a/web/src/admin/users/UserListPage.ts +++ b/web/src/admin/users/UserListPage.ts @@ -131,9 +131,10 @@ export class UserListPage extends WithBrandConfig(WithCapabilitiesConfig(TablePa constructor() { super(); - this.activePath = getURLParam("path", "/"); + const defaultPath = new DefaultUIConfig().defaults.userPath; + this.activePath = getURLParam("path", defaultPath); uiConfig().then((c) => { - if (c.defaults.userPath !== new DefaultUIConfig().defaults.userPath) { + if (c.defaults.userPath !== defaultPath) { this.activePath = c.defaults.userPath; } });