Skip to content

Commit

Permalink
web/user: fix redirects back to user settings (#13076)
Browse files Browse the repository at this point in the history
closes #13075

Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu authored Feb 16, 2025
1 parent b865e97 commit e9c944c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion web/src/user/user-settings/details/UserPassword.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { AndNext } from "@goauthentik/common/api/config";
import { globalAK } from "@goauthentik/common/global";
import { AKElement } from "@goauthentik/elements/Base";

import { msg } from "@lit/localize";
Expand Down Expand Up @@ -31,7 +32,7 @@ export class UserSettingsPassword extends AKElement {
<div class="pf-c-card__body">
<a
href="${ifDefined(this.configureUrl)}${AndNext(
`/if/user/#/settings;${JSON.stringify({ page: "page-details" })}`,
`${globalAK().api.base}if/user/#/settings;${JSON.stringify({ page: "page-details" })}`,
)}"
class="pf-c-button pf-m-primary"
>
Expand Down
3 changes: 2 additions & 1 deletion web/src/user/user-settings/mfa/MFADevicesPage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AndNext, DEFAULT_CONFIG } from "@goauthentik/common/api/config";
import { SentryIgnoredError } from "@goauthentik/common/errors";
import { globalAK } from "@goauthentik/common/global";
import { deviceTypeName } from "@goauthentik/common/labels";
import { getRelativeTime } from "@goauthentik/common/utils";
import "@goauthentik/elements/buttons/Dropdown";
Expand Down Expand Up @@ -73,7 +74,7 @@ export class MFADevicesPage extends Table<Device> {
return html`<li>
<a
href="${ifDefined(stage.configureUrl)}${AndNext(
`/if/user/#/settings;${JSON.stringify({
`${globalAK().api.base}if/user/#/settings;${JSON.stringify({
page: "page-mfa",
})}`,
)}"
Expand Down

0 comments on commit e9c944c

Please sign in to comment.