mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-18 23:16:04 +08:00
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. |
||
|---|---|---|
| .. | ||
| asciicast | ||
| common | ||
| console | ||
| csv | ||
| external | ||
| markdown | ||
| mdstripper | ||
| orgmode | ||
| camo_test.go | ||
| camo.go | ||
| html_codepreview_test.go | ||
| html_codepreview.go | ||
| html_internal_test.go | ||
| html_link.go | ||
| html_node.go | ||
| html_test.go | ||
| html.go | ||
| main_test.go | ||
| renderer_test.go | ||
| renderer.go | ||
| sanitizer_custom.go | ||
| sanitizer_default_test.go | ||
| sanitizer_default.go | ||
| sanitizer_description_test.go | ||
| sanitizer_description.go | ||
| sanitizer.go | ||