aboutsummaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/components/Editor/Editor.jsx3
1 files changed, 0 insertions, 3 deletions
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);