ui: SvelteKit2: goto doesn't accept external URLs
This commit is contained in:
parent
3211f8e6f9
commit
3c6c070bd1
|
@ -101,7 +101,7 @@ export class ProviderForm {
|
||||||
this.nextInProgress = true;
|
this.nextInProgress = true;
|
||||||
this.saveState();
|
this.saveState();
|
||||||
if (this.form && this.form.nextButtonLink) {
|
if (this.form && this.form.nextButtonLink) {
|
||||||
goto(this.form.nextButtonLink);
|
window.location.href = this.form.nextButtonLink;
|
||||||
} else {
|
} else {
|
||||||
this.form = await this.changeState(this.form && this.form.nextButtonState ? this.form.nextButtonState : 0);
|
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.previousInProgress = true;
|
||||||
this.saveState();
|
this.saveState();
|
||||||
if (this.form && this.form.previousButtonLink) {
|
if (this.form && this.form.previousButtonLink) {
|
||||||
goto(this.form.previousButtonLink);
|
window.location.href = this.form.previousButtonLink;
|
||||||
} else {
|
} else {
|
||||||
this.form = await this.changeState(this.form && this.form.previousButtonState ? this.form.previousButtonState : 0);
|
this.form = await this.changeState(this.form && this.form.previousButtonState ? this.form.previousButtonState : 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue