diff --git a/public/home/search.js b/public/home/search.js index e4785ab8b..5efa9de7a 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -404,7 +404,7 @@ function setIssueOrPrInnerHtml(data,path){ html += "
" + recordMap["content"] + "
"; html +=""; html +=" "; - html +=" " + recordMap["repoUrl"] +"#" + recordMap["id"] + ""; + html +=" " + recordMap["repoUrl"] +"#" + recordMap["index"] + ""; html +=" "; if(isEmpty(recordMap["is_closed"]) || recordMap["is_closed"]=="f"){ html += "关闭"; diff --git a/routers/search.go b/routers/search.go index 48d0d5085..6d528d1e4 100644 --- a/routers/search.go +++ b/routers/search.go @@ -600,6 +600,7 @@ func makeIssueResult(sRes *elastic.SearchResult, Key string, OnlyReturnNum bool) if recordSource["pr_id"] != nil { record["pr_id"] = recordSource["pr_id"] } + log.Info("index=" + recordSource["index"].(string)) record["index"] = recordSource["index"] record["num_comments"] = recordSource["num_comments"] record["is_closed"] = recordSource["is_closed"]