Use the bounce app to open links from inner

This commit is contained in:
yflory
2017-11-27 14:44:44 +01:00
parent 812df7de6f
commit 644f6e9985
7 changed files with 42 additions and 39 deletions

View File

@@ -345,8 +345,9 @@ define([
var el = e.currentTarget;
if (!el || el.nodeName !== 'A') { return; }
var href = el.getAttribute('href');
var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href);
if (href) { ifrWindow.open(bounceHref, '_blank'); }
if (href) {
framework._.sfCommon.openUnsafeURL(href);
}
};
framework.onEditableChange(function (unlocked) {