1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-11 12:08:21 +00:00

Backported wrong api request url for instances running in subfolders (#5247) (#5261)

This commit is contained in:
kolaente
2018-11-03 22:43:11 +01:00
committed by techknowlogick
parent 14a074f979
commit f95c966770

View File

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