Skip to content

Commit 499d132

Browse files
lafrikstechknowlogick
authored andcommitted
Fix dependent issue searching when gitea is run in subpath (#5392)
1 parent 7e587e0 commit 499d132

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
@@ -2712,7 +2712,7 @@ function initIssueList() {
27122712
$('.new-dependency-drop-list')
27132713
.dropdown({
27142714
apiSettings: {
2715-
url: suburl + '/api/v1/repos' + repolink + '/issues?q={query}',
2715+
url: suburl + '/api/v1/repos/' + repolink + '/issues?q={query}',
27162716
onResponse: function(response) {
27172717
var filteredResponse = {'success': true, 'results': []};
27182718
// 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)