From f93fe50044698a511d340f1a9ad4e8d3108d7480 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 5 Jul 2022 18:39:14 +0100 Subject: [PATCH] Fix anchor links do not work with addressbar=permalink and animationduration=0 Fixes #6757 --- core/modules/startup/story.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/modules/startup/story.js b/core/modules/startup/story.js index f8ce38ff2..734f6ae76 100644 --- a/core/modules/startup/story.js +++ b/core/modules/startup/story.js @@ -54,7 +54,9 @@ exports.startup = function() { var hash = $tw.utils.getLocationHash(); if(hash !== $tw.locationHash) { $tw.locationHash = hash; - openStartupTiddlers({defaultToCurrentStory: true}); + if(hash !== "#") { + openStartupTiddlers({defaultToCurrentStory: true}); + } } },false); // Listen for the tm-browser-refresh message