diff --git a/roles/distgit/templates/cgit-header.html b/roles/distgit/templates/cgit-header.html index c3ac46657c..23058e2d64 100644 --- a/roles/distgit/templates/cgit-header.html +++ b/roles/distgit/templates/cgit-header.html @@ -14,8 +14,8 @@ {% endif %} var tokens = window.location.href.split('/'); var repo = null; - if (tokens.length > 4 && tokens[4] != '') { - repo = tokens[4].split('.')[0]; + if (tokens.length > 5 && tokens[4] == 'rpms' && tokens[5] != '') { + repo = tokens[5].split('.')[0]; } fedmenu({ 'url': base + 'js/data.js',