From 1c2280306871b9ceaec19a2671fbcb7b225699ed Mon Sep 17 00:00:00 2001 From: nune <145225213+gigirassy@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:04:00 -0500 Subject: [PATCH] Update client.js --- public/client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/client.js b/public/client.js index 82ce27f..bf36845 100644 --- a/public/client.js +++ b/public/client.js @@ -5,8 +5,7 @@ document.getElementById('fetchBtn').addEventListener('click', () => { const pasteId = getPasteId(urlInput); if (pasteId) { - // Redirect to the raw paste route on your server - window.location.href = `http://localhost:3000/${pasteId}`; + window.location.href = `/${pasteId}`; } else { alert('Please enter a valid Pastebin URL.'); }