Browse Source

:art: Simplify document block paths in search results https://github.com/siyuan-note/siyuan/issues/13364

Daniel 7 months ago
parent
commit
a8f088cb5e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      kernel/model/search.go

+ 3 - 1
kernel/model/search.go

@@ -1125,7 +1125,9 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
 		ret = []*Block{}
 	}
 
-	filterSelfHPath(ret)
+	if 0 == groupBy {
+		filterSelfHPath(ret)
+	}
 	return
 }