From e675b2547f4e0de97d260fea4467b8a04d73a8e1 Mon Sep 17 00:00:00 2001 From: rugk Date: Wed, 16 Oct 2024 23:09:00 +0200 Subject: [PATCH] Fix Fixes https://github.com/PrivateBin/PrivateBin/issues/1420 I have not tested it practically (just a quick hotfix), but given the code history and this was what worked before, I guess this should work. :upside_down_face: --- js/privatebin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index 9c843628..fbd599f3 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -3988,7 +3988,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { } emailBody += I18n._('Link:'); emailBody += EOL; - emailBody += $('#pasteurl').attr('href'); // might have been shortened + emailBody += $('#pasteurl').attr('href') || window.location.href; // href is tried first as it might have been shortened return emailBody; }