diff --git a/swh/web/browse/snapshot_context.py b/swh/web/browse/snapshot_context.py --- a/swh/web/browse/snapshot_context.py +++ b/swh/web/browse/snapshot_context.py @@ -543,7 +543,6 @@ url=None, ) ) - branch_name = revision_id query_params["revision"] = revision_id elif snapshot_total_size and release_name: release = _get_release(releases, release_name, snapshot_id) diff --git a/swh/web/templates/includes/top-navigation.html b/swh/web/templates/includes/top-navigation.html --- a/swh/web/templates/includes/top-navigation.html +++ b/swh/web/templates/includes/top-navigation.html @@ -9,7 +9,7 @@
{% if snapshot_context %} - {% if snapshot_context.branch or snapshot_context.release %} + {% if snapshot_context.branch or snapshot_context.release or snapshot_context.revision_id %}