0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:20:38 +01:00
gitea/routers/web/repo
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
..
actions Show latest run when visit /run/latest (#31808) 2024-08-10 08:40:41 +08:00
setting Show lock owner instead of repo owner on LFS setting page (#31788) 2024-08-11 14:48:20 +00:00
activity.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
attachment.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
blame.go
branch.go Hide the "Details" link of commit status when the user cannot access actions (#30156) 2024-07-28 23:11:40 +08:00
cherry_pick.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
code_frequency.go
commit.go Hide the "Details" link of commit status when the user cannot access actions (#30156) 2024-07-28 23:11:40 +08:00
compare.go Hide the "Details" link of commit status when the user cannot access actions (#30156) 2024-07-28 23:11:40 +08:00
contributors.go
download.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
editor_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
editor.go
find.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
fork.go
githttp_test.go
githttp.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
helper_test.go
helper.go
issue_content_history.go
issue_dependency.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_label_test.go
issue_label.go
issue_lock.go
issue_pin.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_stopwatch.go
issue_test.go
issue_timetrack.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
issue_watch.go
issue.go Support issue template assignees (#31083) 2024-08-12 16:00:40 +08:00
main_test.go
middlewares.go
migrate.go
milestone.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
packages.go
patch.go
projects_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
projects.go Add issue comment when moving issues from one column to another of the project (#29311) 2024-08-09 01:29:02 +00:00
pull_review_test.go
pull_review.go
pull.go Add permission check when creating PR (#31033) 2024-07-29 02:21:22 +00:00
recent_commits.go
release_test.go
release.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
render.go
repo.go Hide the "Details" link of commit status when the user cannot access actions (#30156) 2024-07-28 23:11:40 +08:00
search_test.go
search.go
topic.go
treelist.go
view_test.go
view.go render plain text file if the LFS object doesn't exist (#31812) 2024-08-15 05:50:09 +08:00
wiki_test.go Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00
wiki.go Fix raw wiki links (#31825) 2024-08-16 20:40:51 +08:00