# HG changeset patch # User Mads Kiilerich # Date 2015-05-07 16:23:45 # Node ID 496bd1bc9a69747d646c518a59add2f3565098e7 # Parent 50cf39fe8335a562f4d39fda2cdb228e48e19aec changeset: hack to "reload" page to make #target links work first time Like 9dfd9d242728 did for pull requests. diff --git a/kallithea/templates/changeset/changeset.html b/kallithea/templates/changeset/changeset.html --- a/kallithea/templates/changeset/changeset.html +++ b/kallithea/templates/changeset/changeset.html @@ -283,7 +283,12 @@ ${self.repo_context_bar('changelog', c.c }); e.preventDefault(); } - }) + }); + + // hack: re-navigate to target after JS is done ... if a target is set and setting href thus won't reload + if (window.location.hash != "") { + window.location.href = window.location.href; + } })