- createLink('design', 'browse', "productID=$design->product"), ' ' . $lang->goback, '', "class='btn btn-secondary'");?>
+ session->designList != false ? $app->session->designList : $this->createLink('design', 'browse', "productID=$design->product");?>
+ ' . $lang->goback, '', "class='btn btn-secondary'");?>
id?>
diff --git a/module/repo/control.php b/module/repo/control.php
index f71c135bd7..d6cd0ecd39 100644
--- a/module/repo/control.php
+++ b/module/repo/control.php
@@ -465,7 +465,10 @@ class repo extends control
$this->repo->setMenu($this->repos, $repoID);
$this->repo->setBackSession();
if($repoID == 0) $repoID = $this->session->repoID;
- $repo = $this->repo->getRepoByID($repoID);
+ $repo = $this->repo->getRepoByID($repoID);
+
+ /* Save session. */
+ $this->session->set('revisionList', $this->app->getURI(true));
$this->scm->setEngine($repo);
$log = $this->scm->log('', $revision, $revision);
diff --git a/module/repo/view/revision.html.php b/module/repo/view/revision.html.php
index 26919dcf7b..02c605ab28 100644
--- a/module/repo/view/revision.html.php
+++ b/module/repo/view/revision.html.php
@@ -19,7 +19,8 @@ $typeInfo = $type == 'file' ? '&type=file' : '';
- repo->createLink('browse', "repoID={$repoID}{$preDir}"), "" . $lang->goback, '', "class='btn btn-link'");?>
+ session->revisionList != false ? $app->session->revisionList : $this->repo->createLink('browse', "repoID={$repoID}{$preDir}");?>
+ " . $lang->goback, '', "class='btn btn-link'");?>
repo->revisionA . ' ' . ($repo->SCM == 'Git' ? $this->repo->getGitRevisionName($revision, $log->commit) : $revision);?>
diff --git a/module/story/control.php b/module/story/control.php
index f8866ac8cf..db26accf8e 100644
--- a/module/story/control.php
+++ b/module/story/control.php
@@ -1360,7 +1360,13 @@ class story extends control
}
/* Save session. */
- $this->session->set('storyList', $this->app->getURI(true));
+ $this->session->set('storyList', $this->app->getURI(true));
+ $this->session->set('designList', $this->app->getURI(true));
+ $this->session->set('bugList', $this->app->getURI(true));
+ $this->session->set('caseList', $this->app->getURI(true));
+ $this->session->set('bugList', $this->app->getURI(true));
+ $this->session->set('revisionList', $this->app->getURI(true));
+
/* Load pager and get tracks. */
$this->app->loadClass('pager', $static = true);