1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-14 01:26:48 +00:00

Share plugin: Further fixes to c39ef398bf

See https://talk.tiddlywiki.org/t/revived-share-plugin/5887/14

Thanks @btheado
This commit is contained in:
jeremy@jermolene.com 2023-01-17 14:34:06 +00:00
parent c8d99c8aad
commit 8f7441f296

View File

@ -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 {