From 3c6c070bd19a733662527a922dc01aaab08cecc6 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 8 Feb 2024 15:38:17 +0100 Subject: [PATCH] ui: SvelteKit2: goto doesn't accept external URLs --- ui/src/lib/model/provider_form.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/lib/model/provider_form.ts b/ui/src/lib/model/provider_form.ts index db9a2f5..c1bb3b5 100644 --- a/ui/src/lib/model/provider_form.ts +++ b/ui/src/lib/model/provider_form.ts @@ -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); }