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

@ -28,7 +28,12 @@ export class UserSettingsPassword extends LitElement {
return html`<div class="pf-c-card">
<div class="pf-c-card__title">${t`Change your password`}</div>
<div class="pf-c-card__body">
<a href="${ifDefined(this.configureUrl)}" class="pf-c-button pf-m-primary">
<a
href="${ifDefined(this.configureUrl)}?next=${encodeURIComponent(
"/if/user/#/settings;page-details",
)}"
class="pf-c-button pf-m-primary"
>
${t`Change password`}
</a>
</div>