1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +12:00

Use redirect instead of goto

This commit is contained in:
Adria Navarro 2023-12-15 13:52:15 +01:00
parent f8ce1ee365
commit bce1b86059

View file

@ -1,6 +1,6 @@
<script>
import Spinner from "components/common/Spinner.svelte"
import { goto } from "@roxi/routify"
import { redirect } from "@roxi/routify"
import { API } from "api"
@ -16,7 +16,7 @@
const urlParams = new URLSearchParams(window.location.search)
const returnUrl = urlParams.get("returnUrl")
$goto(returnUrl)
$redirect(returnUrl)
}, 1000)
}