From cafc5cd891de7222d95db06f7eb33f82ad132e31 Mon Sep 17 00:00:00 2001 From: Stuart Williams Date: Tue, 6 Dec 2016 14:08:04 -0500 Subject: [PATCH] closes #5259 --- public/src/modules/share.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/modules/share.js b/public/src/modules/share.js index 9229ca549e..ec850ed1c9 100644 --- a/public/src/modules/share.js +++ b/public/src/modules/share.js @@ -1,6 +1,6 @@ 'use strict'; -/* globals define */ +/* globals define, config */ define('share', function () { @@ -11,7 +11,7 @@ define('share', function () { var baseUrl = window.location.protocol + '//' + window.location.host; function openShare(url, urlToPost, width, height) { - window.open(url + encodeURIComponent(baseUrl + urlToPost), '_blank', 'width=' + width + ',height=' + height + ',scrollbars=no,status=no'); + window.open(url + encodeURIComponent(baseUrl + config.relative_path + urlToPost), '_blank', 'width=' + width + ',height=' + height + ',scrollbars=no,status=no'); return false; }