From 08a82bfcf38889f589f4a55eda5e01a39fe7f031 Mon Sep 17 00:00:00 2001 From: log101 Date: Mon, 29 Jul 2024 22:19:00 +0300 Subject: [PATCH] chore: change url --- src/scripts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/index.ts b/src/scripts/index.ts index 54eec48..f8a1d75 100644 --- a/src/scripts/index.ts +++ b/src/scripts/index.ts @@ -55,7 +55,7 @@ const handleSubmit = async (e: SubmitEvent) => { if (res.status === 200) { const data = await res.json() - if (data.url) location.assign(`/x?id=${data.url}`) + if (data.url) location.assign(`/x/${data.url}`) } else { toast("Konulu konum oluşturulamadı, lütfen tekrar deneyin.") }