diff --git a/module/project/control.php b/module/project/control.php index b24dc408f9..2a0613a208 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1572,7 +1572,14 @@ class project extends control /* Delete the execution under the project. */ $executionIdList = $this->loadModel('execution')->getByProject($projectID); - $url = $this->createLink('program', 'browse'); + if($this->app->tab == 'program') + { + $url = $this->createLink('program', 'browse'); + } + else if($this->app->tab == 'project') + { + $url = $this->createLink('project', 'browse'); + } if(empty($executionIdList)) {