From 8f909c19b339e16a84d509887010c69dfe662668 Mon Sep 17 00:00:00 2001 From: yaisog Date: Tue, 13 Jan 2026 19:38:13 +0100 Subject: [PATCH] Use correct calling context for actions --- core/modules/widgets/navigator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index a49e6d2cf..60fea71bc 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -90,7 +90,10 @@ NavigatorWidget.prototype.refresh = function(changedTiddlers) { var delay = parseInt(this.wiki.getTiddlerText("$:/config/AnimationDuration","0"),10) || 0; setTimeout(function() { actionsToExecute.forEach(function(item) { - self.invokeActionString(item.actions, self, item.event, item.variables); + // We invoke the actions on the widget that sent the tm-navigate message + // This ensures proper variable evaluation and message propagation + var contextWidget = item.event.navigateFromNode || item.event.widget || self; + contextWidget.invokeActionString(item.actions, contextWidget, item.event, item.variables); }); }, delay); }