diff --git a/module/execution/model.php b/module/execution/model.php
index 6f2eab0f95..5e4ebdae82 100644
--- a/module/execution/model.php
+++ b/module/execution/model.php
@@ -1182,6 +1182,10 @@ class executionModel extends model
{
$link = helper::createLink('execution', $module, "executionID=%s");
}
+ elseif($module == 'repo')
+ {
+ $link = helper::createLink('repo', 'browse', "repoID=0&branchID=&executionID=%s");
+ }
else
{
$link = helper::createLink($module, $method, "executionID=%s");
diff --git a/module/project/control.php b/module/project/control.php
index c008174851..817cad57bc 100644
--- a/module/project/control.php
+++ b/module/project/control.php
@@ -173,6 +173,9 @@ class project extends control
{
$projectID = $this->project->saveState($projectID, $this->project->getPairsByProgram());
+ if($projectID == 0 and common::hasPriv('project', 'create')) $this->locate($this->createLink('project', 'create'));
+ if($projectID == 0 and !common::hasPriv('project', 'create')) $this->locate($this->createLink('project', 'browse'));
+
$this->project->setMenu($projectID);
$project = $this->project->getByID($projectID);