Skip to content

Commit

Permalink
NickAkhmetov/CAT-1073 Keep the marker URL param during redirect to …
Browse files Browse the repository at this point in the history
…unified view (#3666)
  • Loading branch information
NickAkhmetov authored Jan 13, 2025
1 parent 621daf3 commit 65b64c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-marker-gene-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix persistence of selected marker genes after redirect to primary dataset.
5 changes: 4 additions & 1 deletion context/app/routes_browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def details(type, uuid):
if raw_dataset is None or len(raw_dataset) == 0:
abort(404)

marker = request.args.get('marker') or None

# Redirect to the primary dataset
return redirect(
url_for('routes_browse.details',
Expand All @@ -66,7 +68,8 @@ def details(type, uuid):
_anchor=anchor,
redirected=True,
redirectedFromId=entity.get('hubmap_id'),
redirectedFromPipeline=entity.get('pipeline')))
redirectedFromPipeline=entity.get('pipeline'),
marker=marker))

if type != actual_type:
return redirect(url_for('routes_browse.details', type=actual_type, uuid=uuid))
Expand Down

0 comments on commit 65b64c4

Please sign in to comment.