From 86c4719b540b96541c5369d24d574a027ba3e34b Mon Sep 17 00:00:00 2001 From: Blaster4385 Date: Tue, 30 Apr 2024 11:13:55 +0530 Subject: feat: switched to backend based redirection --- client/src/components/Editor/Editor.jsx | 3 --- 1 file changed, 3 deletions(-) (limited to 'client/src') diff --git a/client/src/components/Editor/Editor.jsx b/client/src/components/Editor/Editor.jsx index 247d060..868036f 100644 --- a/client/src/components/Editor/Editor.jsx +++ b/client/src/components/Editor/Editor.jsx @@ -99,9 +99,6 @@ const Editor = () => { const isURL = URL_REGEX.test(data.content); if (isURL) { setText(`Your shortened URL: ${BASE_URL}/r/${id}`); - if (location.pathname === `/r/${id}`) { - window.location.href = data.content; - } } else { setLanguage(data.language); setText(data.content); -- cgit