1
1
mirror of https://github.com/go-gitea/gitea synced 2024-09-21 03:06:04 +00:00
gitea/routers
Zettat123 2010fbe060
Fix raw wiki links (#31825)
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.
2024-08-16 20:40:51 +08:00
..
api Fix RPM resource leak (#31794) 2024-08-08 09:43:04 +00:00
common Refactor route path normalization (#31381) 2024-06-17 23:28:47 +00:00
install Refactor names (#31405) 2024-06-19 06:32:45 +08:00
private Fix protected branch files detection on pre_receive hook (#31778) 2024-08-06 13:32:49 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
init.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00