diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index c4aef29..0c1db3a 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -1383,6 +1383,12 @@ $("[data-line-number]").click(function (ev) { window.location.hash = hash; return false; }); + +// Update hash links in the addressbar according to which tab is clicked +// on the PR page. +$(document).on('click', '#pr-tabs a', function() { + window.location.hash = $(this).attr('href'); +});