From 7cb345001aabf4456e862c3147fd688cd9316425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rik=20Paradis?= Date: Thu, 10 May 2012 14:35:33 -0400 Subject: [PATCH] Change URL on clone --- js/zerobin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/zerobin.js b/js/zerobin.js index 2392598..545c39e 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -328,6 +328,10 @@ function stateExistingPaste() { */ function clonePaste() { stateNewPaste(); + + //Erase the id and the key in url + history.replaceState(document.title, document.title, scriptLocation()); + showStatus(''); $('textarea#message').text($('div#cleartext').text()); }