diff --git a/js/misc-functions.js b/js/misc-functions.js index be6968b..0348263 100644 --- a/js/misc-functions.js +++ b/js/misc-functions.js @@ -809,7 +809,7 @@ function shortenUrlsInBox(shortenButton) { console.log(data.url); - shortenButton.parent().parent().siblings('.queet-box-syntax').html(shortenButton.parent().parent().siblings('.queet-box-syntax').html().replace($('
').text(data.url.url).html(), data.shorturl)); + shortenButton.parent().parent().siblings('.queet-box-syntax').html(shortenButton.parent().parent().siblings('.queet-box-syntax').html().replace($('
').text(decodeURIComponent(data.url.url)).html(), data.shorturl)); shortenButton.parent().parent().siblings('.queet-box-syntax').trigger('keyup'); shortenButton.addClass('disabled'); // make sure the button is disabled right after }