summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-11-25 19:25:55 +0200
committertechknowlogick <hello@techknowlogick.com>2018-11-25 12:25:55 -0500
commit499d13212411960f8607f67c421afd726730528b (patch)
treefaab6c9fdf4403dc00572855cb57a377d1abc64a
parent7e587e097c4892522ac7b13037a24b6d81e32a83 (diff)
downloadgitea-499d13212411960f8607f67c421afd726730528b.tar.gz
gitea-499d13212411960f8607f67c421afd726730528b.zip
Fix dependent issue searching when gitea is run in subpath (#5392)
-rw-r--r--public/js/index.js2
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 9e33ac7de3..1e7dd4da19 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2712,7 +2712,7 @@ function initIssueList() {
$('.new-dependency-drop-list')
.dropdown({
apiSettings: {
- url: suburl + '/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
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index fc4b812b21..fa7a05512d 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -338,7 +338,7 @@
</div>
</div>
{{if .CanCreateIssueDependencies}}
- <input type="hidden" id="repolink" value="{{$.RepoLink}}">
+ <input type="hidden" id="repolink" value="{{$.RepoRelPath}}">
<!-- I know, there is probably a better way to do this -->
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/>