fix: get from search param
All checks were successful
/ Build (push) Successful in 41s

This commit is contained in:
log101 2024-07-29 22:42:36 +03:00
parent 08a82bfcf3
commit 1f282bf07a

View File

@ -55,7 +55,7 @@ const handleSubmit = async (e: SubmitEvent) => {
if (res.status === 200) {
const data = await res.json()
if (data.url) location.assign(`/x/${data.url}`)
if (data.url) location.assign(`/x?id=${data.url}`)
} else {
toast("Konulu konum oluşturulamadı, lütfen tekrar deneyin.")
}