Skip to content

Commit a63211f

Browse files
committed
Fix dependent issue searching when gitea is run in subpath (go-gitea#5392)
1 parent 773addf commit a63211f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ function initIssueList() {
26252625
$('.new-dependency-drop-list')
26262626
.dropdown({
26272627
apiSettings: {
2628-
url: suburl + '/api/v1/repos' + repolink + '/issues?q={query}',
2628+
url: suburl + '/api/v1/repos/' + repolink + '/issues?q={query}',
26292629
onResponse: function(response) {
26302630
var filteredResponse = {'success': true, 'results': []};
26312631
// Parse the response from the api to work with our dropdown

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
</div>
339339
</div>
340340
{{if .CanCreateIssueDependencies}}
341-
<input type="hidden" id="repolink" value="{{$.RepoLink}}">
341+
<input type="hidden" id="repolink" value="{{$.RepoRelPath}}">
342342
<!-- I know, there is probably a better way to do this -->
343343
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/>
344344

0 commit comments

Comments
 (0)