Fix package injected to fedmenu on pkgs.fp.o
Fedmenu is used to link other package related services. On pkgs.fp.o constant "rpms" is used instead of package name. Signed-off-by: Marian Csontos <mcsontos@redhat.com>
This commit is contained in:
parent
376b5d1098
commit
de3af0e0d0
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue