Skip to content

Commit

Permalink
core: fix error when creating new user with default path (#12609)
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu authored Jan 9, 2025
1 parent 052da72 commit 1e6018c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/admin/users/UserListPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ export class UserListPage extends WithBrandConfig(WithCapabilitiesConfig(TablePa

constructor() {
super();
this.activePath = getURLParam<string>("path", "/");
const defaultPath = new DefaultUIConfig().defaults.userPath;
this.activePath = getURLParam<string>("path", defaultPath);
uiConfig().then((c) => {
if (c.defaults.userPath !== new DefaultUIConfig().defaults.userPath) {
if (c.defaults.userPath !== defaultPath) {
this.activePath = c.defaults.userPath;
}
});
Expand Down

0 comments on commit 1e6018c

Please sign in to comment.