From 190dff1c9b791e6167b3d5f7127af12a365d6ef3 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Mon, 28 Aug 2017 17:50:55 +0200 Subject: [PATCH] Use the bounce app for opening a link with the right click --- www/pad/links.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/pad/links.js b/www/pad/links.js index 6a53a4bc7..fa7861659 100644 --- a/www/pad/links.js +++ b/www/pad/links.js @@ -29,7 +29,8 @@ define(['/common/cryptpad-common.js'], function (Cryptpad) { if (anchor) { var href = anchor.getAttribute('href'); if (href) { - window.open(href); + var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href); + window.open(bounceHref); } } }