diff --git a/www/include/social_meta_vars.inc b/www/include/social_meta_vars.inc index 14463a9ae9..3ed06a702f 100644 --- a/www/include/social_meta_vars.inc +++ b/www/include/social_meta_vars.inc @@ -3,7 +3,7 @@ require_once __DIR__ . '/../common_lib.inc'; require_once __DIR__ . '/../common.inc'; -$pageURI = urlencode('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); +$pageURI = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // NOTE: if you'd like a page to include a screenshot for social sharing, specify $useScreenshot = true above the head include. // Also, for page-specific screenshot css tweaks, add a screenshot class to that page's body class $screenshotURI = CreateUrlVariation($pageURI, "screenshot=1"); @@ -13,5 +13,5 @@ $socialImage = isset($useScreenshot) ? "https://wpt-screenshot.netlify.app/" . u $socialTitle = isset($socialTitle) ? $socialTitle : "WebPageTest"; $socialDesc = isset($socialDesc) ? $socialDesc : "View this on WebPageTest.org..."; $emailSubject = "View this on WebPageTest!"; -$tweetURI = 'https://twitter.com/intent/tweet?text=' . urlencode($socialDesc) . '&url=' . urlencode($pageURI) . '&via=realwebpagetest'; -$emailURI = 'mailto:?subject=' . rawurlencode(htmlspecialchars_decode($emailSubject)) . '&body=' . rawurlencode(htmlspecialchars_decode($socialDesc) . ' %0D%0A ') . $pageURI; \ No newline at end of file +$tweetURI = 'https://twitter.com/intent/tweet?text=' . urlencode($socialDesc) . '&url=' . $pageURI . '&via=realwebpagetest'; +$emailURI = 'mailto:?subject=' . rawurlencode(htmlspecialchars_decode($emailSubject)) . '&body=' . rawurlencode(htmlspecialchars_decode($socialDesc) . " \n ") . $pageURI;