web/user: fix use sub-pages not redirecting back to the subpage

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-05-21 17:07:30 +02:00
parent 646d174dd2
commit dce623dd7c
3 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@ export class UserSettingsPassword extends LitElement {
<div class="pf-c-card__body"> <div class="pf-c-card__body">
<a <a
href="${ifDefined(this.configureUrl)}${AndNext( href="${ifDefined(this.configureUrl)}${AndNext(
"/if/user/#/settings;page-details", `/if/user/#/settings;${JSON.stringify({ page: "page-details" })}`,
)}" )}"
class="pf-c-button pf-m-primary" class="pf-c-button pf-m-primary"
> >

View File

@ -79,7 +79,9 @@ export class MFADevicesPage extends Table<Device> {
return html`<li> return html`<li>
<a <a
href="${ifDefined(stage.configureUrl)}${AndNext( href="${ifDefined(stage.configureUrl)}${AndNext(
"/if/user/#/settings;page-mfa", `/if/user/#/settings;${JSON.stringify({
page: "page-mfa",
})}`,
)}" )}"
class="pf-c-dropdown__menu-item" class="pf-c-dropdown__menu-item"
> >

View File

@ -52,7 +52,7 @@ export class SourceSettingsOAuth extends BaseUserSettings {
return html` <a return html` <a
class="pf-c-button pf-m-primary" class="pf-c-button pf-m-primary"
href="${ifDefined(this.configureUrl)}${AndNext( href="${ifDefined(this.configureUrl)}${AndNext(
"/if/user/#/settings;page-sources", `/if/user/#/settings;${JSON.stringify({ page: "page-sources" })}`,
)}" )}"
> >
${t`Connect`} ${t`Connect`}