]> source.dussan.org Git - gitea.git/commitdiff
Fixed wrong api request url for instances running in subfolders (#5247)
authorkolaente <konrad@kola-entertainments.de>
Sat, 3 Nov 2018 12:20:02 +0000 (13:20 +0100)
committerLauris BH <lauris@nix.lv>
Sat, 3 Nov 2018 12:20:02 +0000 (14:20 +0200)
public/js/index.js

index 0bc28c4f9654f5a7c3f8595f577a02afcc1cf83d..9aafa7d6464b5cbb4916360182b7993765af9eb4 100644 (file)
@@ -2626,7 +2626,7 @@ function initIssueList() {
     $('.new-dependency-drop-list')
         .dropdown({
             apiSettings: {
-                url: '/api/v1/repos' + repolink + '/issues?q={query}',
+                url: suburl + '/api/v1/repos' + repolink + '/issues?q={query}',
                 onResponse: function(response) {
                     var filteredResponse = {'success': true, 'results': []};
                     // Parse the response from the api to work with our dropdown