Skip to content

Commit e9c944c

Browse files
authored
web/user: fix redirects back to user settings (#13076)
closes #13075 Signed-off-by: Jens Langhammer <[email protected]>
1 parent b865e97 commit e9c944c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

web/src/user/user-settings/details/UserPassword.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AndNext } from "@goauthentik/common/api/config";
2+
import { globalAK } from "@goauthentik/common/global";
23
import { AKElement } from "@goauthentik/elements/Base";
34

45
import { msg } from "@lit/localize";
@@ -31,7 +32,7 @@ export class UserSettingsPassword extends AKElement {
3132
<div class="pf-c-card__body">
3233
<a
3334
href="${ifDefined(this.configureUrl)}${AndNext(
34-
`/if/user/#/settings;${JSON.stringify({ page: "page-details" })}`,
35+
`${globalAK().api.base}if/user/#/settings;${JSON.stringify({ page: "page-details" })}`,
3536
)}"
3637
class="pf-c-button pf-m-primary"
3738
>

web/src/user/user-settings/mfa/MFADevicesPage.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { AndNext, DEFAULT_CONFIG } from "@goauthentik/common/api/config";
22
import { SentryIgnoredError } from "@goauthentik/common/errors";
3+
import { globalAK } from "@goauthentik/common/global";
34
import { deviceTypeName } from "@goauthentik/common/labels";
45
import { getRelativeTime } from "@goauthentik/common/utils";
56
import "@goauthentik/elements/buttons/Dropdown";
@@ -73,7 +74,7 @@ export class MFADevicesPage extends Table<Device> {
7374
return html`<li>
7475
<a
7576
href="${ifDefined(stage.configureUrl)}${AndNext(
76-
`/if/user/#/settings;${JSON.stringify({
77+
`${globalAK().api.base}if/user/#/settings;${JSON.stringify({
7778
page: "page-mfa",
7879
})}`,
7980
)}"

0 commit comments

Comments
 (0)