From ac2f307677b520f6535f80782495982d4cf4e56c Mon Sep 17 00:00:00 2001 From: Sunny Sahsi Date: Tue, 6 Aug 2024 09:11:12 +0530 Subject: [PATCH] fix: url redirection --- src/pages/[redirect]/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[redirect]/index.tsx b/src/pages/[redirect]/index.tsx index 414c007..90f43be 100644 --- a/src/pages/[redirect]/index.tsx +++ b/src/pages/[redirect]/index.tsx @@ -20,7 +20,7 @@ const Redirect = () => { }); useEffect(() => { - if (shortUrlCode && data?.url.originalUrl) { + if (shortUrlCode && `${TINY_API_URL}/redirect/${shortUrlCode}`) { startTimer(); } }, [timer, data]);