web/user: fix redirect after starting configuration flow from user interface

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-06 12:57:06 +01:00
parent b996e3cee7
commit da50eb0369
3 changed files with 17 additions and 3 deletions

View File

@ -78,7 +78,11 @@ export class MFADevicesPage extends Table<Device> {
.map((stage) => {
return html`<li>
<a
href="${ifDefined(stage.configureUrl)}"
href="${ifDefined(
stage.configureUrl,
)}?next=${encodeURIComponent(
"/if/user/#/settings;page-mfa",
)}"
class="pf-c-dropdown__menu-item"
>
${stageToAuthenticatorName(stage)}