aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2017-07-23 19:09:06 +0200
committerGitHub <noreply@github.com>2017-07-23 19:09:06 +0200
commit57ee53d6c6be4b641764b0a635b2998c6cdc8197 (patch)
tree5f09b6466b60f9471b156f34ce1e577862c4d148 /tpl/default
parent6d074b4c908d6ba10e0397302ed55ed07742313a (diff)
parent8eb6bac137d31b36ff2da5970f1ac398cf574435 (diff)
downloadShaarli-57ee53d6c6be4b641764b0a635b2998c6cdc8197.tar.gz
Shaarli-57ee53d6c6be4b641764b0a635b2998c6cdc8197.tar.zst
Shaarli-57ee53d6c6be4b641764b0a635b2998c6cdc8197.zip
Merge pull request #896 from ArthurHoaro/hotfix/firefox-social-subdir
Fix Firefox Social button in the default theme
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/js/shaarli.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js
index b120c91e..4f49affa 100644
--- a/tpl/default/js/shaarli.js
+++ b/tpl/default/js/shaarli.js
@@ -606,7 +606,7 @@ function htmlEntities(str)
606 606
607function activateFirefoxSocial(node) { 607function activateFirefoxSocial(node) {
608 var loc = location.href; 608 var loc = location.href;
609 var baseURL = loc.substring(0, loc.lastIndexOf("/")); 609 var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1);
610 610
611 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. 611 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
612 var data = { 612 var data = {
@@ -619,7 +619,7 @@ function activateFirefoxSocial(node) {
619 icon32URL: baseURL + "/images/favicon.ico", 619 icon32URL: baseURL + "/images/favicon.ico",
620 icon64URL: baseURL + "/images/favicon.ico", 620 icon64URL: baseURL + "/images/favicon.ico",
621 621
622 shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}", 622 shareURL: baseURL + "?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi",
623 homepageURL: baseURL 623 homepageURL: baseURL
624 }; 624 };
625 node.setAttribute("data-service", JSON.stringify(data)); 625 node.setAttribute("data-service", JSON.stringify(data));