about summary refs log tree commit diff
path: root/uploader/phenotypes
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/phenotypes')
-rw-r--r--uploader/phenotypes/views.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index d02018d..ac36ec8 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -41,6 +41,7 @@ from uploader.oauth2.client import oauth2_post
 from uploader.oauth2.tokens import request_token
 from uploader.authorisation import require_login
 from uploader.oauth2 import client as oauth2client
+from uploader.route_utils import build_next_argument
 from uploader.route_utils import generic_select_population
 from uploader.datautils import safe_int, enumerate_sequence
 from uploader.species.models import all_species, species_by_id
@@ -247,6 +248,12 @@ def view_phenotype(# pylint: disable=[unused-argument]
             has_se=any(bool(item.get("error")) for item in phenotype["data"]),
             publication=(phenotype_publication_data(conn, phenotype["Id"]) or {}),
             privileges=privileges,
+            next=build_next_argument(
+                uri="species.populations.phenotypes.view_phenotype",
+                species_id=species["SpeciesId"],
+                population_id=population["Id"],
+                dataset_id=dataset["Id"],
+                xref_id=xref_id),
             activelink="view-phenotype")
 
     def __fail__(error):