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.'); }