summaryrefslogtreecommitdiffstats
path: root/modules/markup/html_link.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix raw wiki links (#31825) (#31845)Giteabot2024-08-171-9/+3
| | | | | | | | | | | | | | | | | | | | | Backport #31825 by @Zettat123 Fix #31395 This regression is introduced by #30273. To find out how GitHub handles this case, I did [some tests](https://github.com/go-gitea/gitea/issues/31395#issuecomment-2278929115). I use redirect in this PR instead of checking if the corresponding `.md` file exists when rendering the link because GitHub also uses redirect. With this PR, there is no need to resolve the raw wiki link when rendering a wiki page. If a wiki link points to a raw file, access will be redirected to the raw link. --------- Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: yp05327 <576951401@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix rendered wiki page link (#31398) (#31407)wxiaoguang2024-06-191-0/+35
Backport #31398 Fix #31395