ui: SvelteKit2: goto doesn't accept external URLs

This commit is contained in:
nemunaire 2024-02-08 15:38:17 +01:00
parent 3211f8e6f9
commit 3c6c070bd1
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ export class ProviderForm {
this.nextInProgress = true;
this.saveState();
if (this.form && this.form.nextButtonLink) {
goto(this.form.nextButtonLink);
window.location.href = this.form.nextButtonLink;
} else {
this.form = await this.changeState(this.form && this.form.nextButtonState ? this.form.nextButtonState : 0);
}
@ -112,7 +112,7 @@ export class ProviderForm {
this.previousInProgress = true;
this.saveState();
if (this.form && this.form.previousButtonLink) {
goto(this.form.previousButtonLink);
window.location.href = this.form.previousButtonLink;
} else {
this.form = await this.changeState(this.form && this.form.previousButtonState ? this.form.previousButtonState : 0);
}