@Mark_S and @TW_Tones here’s the code. So the idea is to navigate back to the tiddler you came from when you either close or delete the current.
If you try it out, you’ll see the “close” works but not the “delete” - because of the empty line at end of delete:
\define remove()
</$button>
\end
\define insert()
<$action-navigate $to={{{ [list[$:/StoryList!!list]before<currentTiddler>] }}} />
</$button>
\end
$:/core/ui/Buttons/delete
$:/core/ui/Buttons/close
<$let subfilter='[get[text]removesuffix<remove>addsuffix<insert>]' >
<$button>
<$action-setfield
$tiddler="$:/core/ui/Buttons/delete"
text={{{ [[$:/core/ui/Buttons/delete]subfilter<subfilter>] }}} />
<$action-setfield
$tiddler="$:/core/ui/Buttons/close"
text={{{ [[$:/core/ui/Buttons/close]subfilter<subfilter>] }}} />
X
</$button>
</$let>