diff --git a/src/extensions/default/bramble/lib/LinkManagerRemote.js b/src/extensions/default/bramble/lib/LinkManagerRemote.js index 668740d4fdc..fb9e5bfcd67 100644 --- a/src/extensions/default/bramble/lib/LinkManagerRemote.js +++ b/src/extensions/default/bramble/lib/LinkManagerRemote.js @@ -6,7 +6,13 @@ function handleClick(e) { var url = e.target.getAttribute("href"); - // For local paths vs. absolute URLs, try to open the right file + // For local paths vs. absolute URLs, try to open the right file. + // Special case (i.e., pass through) some common, non-http(s) protocol + // schemes so they work as expected. + if(/^(javascript|mailto|data|blob):/.test(url)) { + return true; + } + if(!(/\:?\/\//.test(url)) && window._Brackets_LiveDev_Transport) { window._Brackets_LiveDev_Transport.send("bramble-navigate:" + url); } else {