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">
${this.configureUrl
? html`<a
href="${this.configureUrl}?next=/%23%2Fuser"
href="${this.configureUrl}?next=/${encodeURIComponent("#/settings")}"
class="pf-c-button pf-m-primary"
>${t`Enable Duo authenticator`}
</a>`

View File

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

View File

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

View File

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