web/user: fix final redirect after stage setup

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-17 09:53:14 +02:00
parent 04399bc8bb
commit 2fe7f4cf04
4 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ export class UserSettingsAuthenticatorDuo extends BaseUserSettings {
<div class="pf-c-card__footer"> <div class="pf-c-card__footer">
${this.configureUrl ${this.configureUrl
? html`<a ? html`<a
href="${this.configureUrl}?next=/%23%2Fuser" href="${this.configureUrl}?next=/${encodeURIComponent("#/settings")}"
class="pf-c-button pf-m-primary" class="pf-c-button pf-m-primary"
>${t`Enable Duo authenticator`} >${t`Enable Duo authenticator`}
</a>` </a>`

View File

@ -75,7 +75,7 @@ export class UserSettingsAuthenticatorStatic extends BaseUserSettings {
<div class="pf-c-card__footer"> <div class="pf-c-card__footer">
${this.configureUrl ${this.configureUrl
? html`<a ? html`<a
href="${this.configureUrl}?next=/%23%2Fuser" href="${this.configureUrl}?next=/${encodeURIComponent("#/settings")}"
class="pf-c-button pf-m-primary" class="pf-c-button pf-m-primary"
>${t`Enable Static Tokens`} >${t`Enable Static Tokens`}
</a>` </a>`

View File

@ -56,7 +56,7 @@ export class UserSettingsAuthenticatorTOTP extends BaseUserSettings {
<div class="pf-c-card__footer"> <div class="pf-c-card__footer">
${this.configureUrl ${this.configureUrl
? html`<a ? html`<a
href="${this.configureUrl}?next=/%23%2Fuser" href="${this.configureUrl}?next=/${encodeURIComponent("#/settings")}"
class="pf-c-button pf-m-primary" class="pf-c-button pf-m-primary"
>${t`Enable TOTP`} >${t`Enable TOTP`}
</a>` </a>`

View File

@ -114,7 +114,7 @@ export class UserSettingsAuthenticatorWebAuthn extends BaseUserSettings {
<div class="pf-c-card__footer"> <div class="pf-c-card__footer">
${this.configureUrl ${this.configureUrl
? html`<a ? html`<a
href="${this.configureUrl}?next=/%23%2Fuser" href="${this.configureUrl}?next=/${encodeURIComponent("#/settings")}"
class="pf-c-button pf-m-primary" class="pf-c-button pf-m-primary"
>${t`Configure WebAuthn`} >${t`Configure WebAuthn`}
</a>` </a>`