diff --git a/core/modules/widgets/link.js b/core/modules/widgets/link.js index 09ad33e38..0a40ce71d 100755 --- a/core/modules/widgets/link.js +++ b/core/modules/widgets/link.js @@ -91,7 +91,7 @@ LinkWidget.prototype.handleClickEvent = function (event) { this.dispatchEvent({ type: "tw-navigate", navigateTo: this.to, - navigateFromTitle: this.getVariable("currentTiddler"), + navigateFromTitle: this.getVariable("storyTiddler"), navigateFromNode: this, navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height } diff --git a/core/ui/EditTemplate.tid b/core/ui/EditTemplate.tid index 2eba5e09a..f78a3ea6a 100644 --- a/core/ui/EditTemplate.tid +++ b/core/ui/EditTemplate.tid @@ -3,4 +3,4 @@ title: $:/core/ui/EditTemplate \define frame-classes() tw-tiddler-frame tw-tiddler-edit-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ \end -
>><$list filter="[is[shadow]!has[draft.of]tag[$:/tags/EditTemplate]] [!is[shadow]!has[draft.of]tag[$:/tags/EditTemplate]] +[tag[$:/tags/EditTemplate]]" variable="listItem"><$transclude tiddler=<>/>
+<$set name="storyTiddler" value=<>>
>><$list filter="[is[shadow]!has[draft.of]tag[$:/tags/EditTemplate]] [!is[shadow]!has[draft.of]tag[$:/tags/EditTemplate]] +[tag[$:/tags/EditTemplate]]" variable="listItem"><$transclude tiddler=<>/>
diff --git a/core/ui/ViewTemplate.tid b/core/ui/ViewTemplate.tid index 02d988a38..75a9bfc7e 100644 --- a/core/ui/ViewTemplate.tid +++ b/core/ui/ViewTemplate.tid @@ -3,6 +3,6 @@ title: $:/core/ui/ViewTemplate \define frame-classes() tw-tiddler-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ \end -<$set name="tiddlerInfoState" value=<>><$tiddler tiddler=<>>
>><$list filter="[is[shadow]!has[draft.of]tag[$:/tags/ViewTemplate]] [!is[shadow]!has[draft.of]tag[$:/tags/ViewTemplate]] +[tag[$:/tags/ViewTemplate]]" variable="listItem"><$transclude tiddler=<>/> +<$set name="storyTiddler" value=<>><$set name="tiddlerInfoState" value=<>><$tiddler tiddler=<>>
>><$list filter="[is[shadow]!has[draft.of]tag[$:/tags/ViewTemplate]] [!is[shadow]!has[draft.of]tag[$:/tags/ViewTemplate]] +[tag[$:/tags/ViewTemplate]]" variable="listItem"><$transclude tiddler=<>/>
- +