From 1ccb6c723fe0e602d070acb8b15d88b6a143fcd5 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Dec 10 2019 12:27:31 +0000 Subject: Change datatype of jquery request, update mdapi URL Pagure expected javascript but mdapi returned json which caused a type mismatch when accessing packages in the /rpms/ namespace. The URL of the mdapi server pointed to an old redirect. Related: https://teams.fedoraproject.org/project/community-fire-team/us/14 Signed-off-by: Karsten Hopp --- diff --git a/pagure/themes/srcfpo/templates/repo_info.html b/pagure/themes/srcfpo/templates/repo_info.html index 151fa49..5de2fb0 100644 --- a/pagure/themes/srcfpo/templates/repo_info.html +++ b/pagure/themes/srcfpo/templates/repo_info.html @@ -491,9 +491,9 @@ $(document).ready(function() { {% if repo.namespace == 'rpms' %} $.ajax({ - url: 'https://apps.fedoraproject.org/mdapi/rawhide/srcpkg/{{ repo.name }}', + url: 'https://mdapi.fedoraproject.org/rawhide/srcpkg/{{ repo.name }}', type: 'GET', - dataType: 'jsonp', + dataType: 'json', success: function(res) { console.log(res); $( ".projectinfo" ).text(res['description']);