Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed issue with mailto parameters

ZachTRice38381fccf1bd
diff --git a/web/js/link/wv.link.ui.js b/web/js/link/wv.link.ui.js
index 4bbe8f0b9..fc3221057 100644
--- a/web/js/link/wv.link.ui.js
+++ b/web/js/link/wv.link.ui.js
@@ -72,7 +72,7 @@ wv.link.ui = wv.link.ui || function(models, config) {
// Social Sharing
var baseLink = window.location.href;
var baseEncodedLink = encodeURIComponent(baseLink);
- var shareMessage = encodeURIComponent('Check out what I found in NASA\'s Worldview! ');
+ var shareMessage = encodeURIComponent('Check out what I found in NASA\'s Worldview!');
shareMessage = shareMessage.replace(/'/g, '%27');
var fbAppId = 'yourFacebookAppId';
@@ -93,7 +93,7 @@ wv.link.ui = wv.link.ui || function(models, config) {
item += "<a class='icon-link fa fa-google-plus fa-2x' href='https://plus.google.com/share?url=" + baseEncodedLink + "' target='_blank' title='Share via Google Plus!'></a>";
// Email
- item += "<a class='icon-link fa fa-envelope fa-2x' href='mailto:?subject=" + shareMessage + "body=" + baseEncodedLink + "' target='_self' title='Share via Email!'></a>";
+ item += "<a class='icon-link fa fa-envelope fa-2x' href='mailto:?subject=" + shareMessage + "&body=" + baseEncodedLink + "' target='_self' title='Share via Email!'></a>";
item += "</div></div>";
$dialog.html(item).iCheck({checkboxClass: 'icheckbox_square-grey'});