diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 3014978f0..728d83e7e 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -468,6 +468,9 @@ NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { // Update the story to insert the new draft at the top and remove any existing tiddler if(storyList.indexOf(draftTitle) === -1) { var slot = storyList.indexOf(event.navigateFromTitle); + if(slot === -1) { + slot = this.openLinkFromOutsideRiver === "bottom" ? storyList.length - 1 : slot; + } storyList.splice(slot + 1,0,draftTitle); } if(storyList.indexOf(title) !== -1) {