Navigation to a tiddler from within a widget's Javascript code

In my AudioPlayer widget (see my previous post) I added a small info button in front of all the movements (classical music) to be played the purpose of which is to navigate to the movements’ tiddlers containing the metadata (composer, type of movement, key,…). The code in the buttons’ event listener is

let action=
'<$navigator story="$:/StoryList" history="$:/HistoryList">' +
'<$action-navigate $to="title of the tiddler to navigate to”/>' +
'</$navigator>';
window.parent.$tw.rootWidget.invokeActionString(action,this);

which I took from [tw5] Javascript to open tiddler. The tiddlers don’t open though. There are no error or other messages in the Javascript console. The above action code works well when tested in a simple test tiddler with a tiddlywiki buttonWidget. I thus presume the way it is invoked (window.parent…) is not correct.

I have just upgraded from v5.3.1 to v5.3.2 and the above code now works beautifully (without change).

2 Likes