mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-22 01:34:18 +00:00
Show page titles in wiki search results (#6048)
Replace wiki page filenames with page titles in the search results, fixing the problem with them showing unreadable URI-encoded names.
This commit is contained in:
parent
19bde653c1
commit
fc31fa0eeb
4 changed files with 41 additions and 6 deletions
|
@ -29,9 +29,9 @@ func TestWikiSearchContent(t *testing.T) {
|
|||
return el.Text()
|
||||
})
|
||||
assert.Equal(t, []string{
|
||||
"Home.md",
|
||||
"Page-With-Spaced-Name.md",
|
||||
"Unescaped File.md",
|
||||
"Home",
|
||||
"Page With Spaced Name",
|
||||
"Unescaped File",
|
||||
}, res)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue