From 8f7441f296351a4dd0852c3c782f8874d398e052 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 17 Jan 2023 14:34:06 +0000 Subject: [PATCH] Share plugin: Further fixes to c39ef398bffae12c0ed7324d9b6d9d29f0f2f9ff See https://talk.tiddlywiki.org/t/revived-share-plugin/5887/14 Thanks @btheado --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index aeaa919fe..1a06c843f 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -313,7 +313,7 @@ $tw.utils.getLocationHash = function() { var idx = href.indexOf('#'); if(idx === -1) { return "#"; - } else if(idx < href.length-1 && href[idx+1] === '#') { + } else if(href.substr(idx + 1,1) === "#" || href.substr(idx + 1,3) === "%23") { // Special case: ignore location hash if it itself starts with a # return "#"; } else {