diff --git a/module/story/zen.php b/module/story/zen.php index cdaf0a77d9..920420bad8 100644 --- a/module/story/zen.php +++ b/module/story/zen.php @@ -1710,7 +1710,13 @@ class storyZen extends story */ protected function getAfterReviewLocation(int $storyID, string $storyType = 'story', string $from = ''): string { - if($from == 'project') return helper::createLink('projectstory', 'view', "storyID={$storyID}&projectID={$this->session->project}"); + if($from == 'project') + { + $project = $this->project->getByID($this->session->project); + if($project && !$project->multiple) return helper::createLink('execution', 'storyView', "storyID=$storyID"); + return helper::createLink('projectstory', 'view', "storyID={$storyID}&projectID={$this->session->project}"); + } + if($from != 'execution') return helper::createLink('story', 'view', "storyID={$storyID}&version=0¶m=0&storyType={$storyType}"); $execution = $this->execution->getByID($this->session->execution);