0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 06:18:39 +01:00
gitea/routers/web/repo
Giteabot 3fe1f73268
Fix raw wiki links (#31825) (#31845)
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>
2024-08-17 03:19:26 +00:00
..
actions Fix possible ui 500 if workflow's job is nil (#31092) (#31098) 2024-05-27 14:13:15 +08:00
setting Show lock owner instead of repo owner on LFS setting page (#31788) (#31817) 2024-08-11 15:17:34 +00:00
activity.go
attachment.go
blame.go
branch.go
cherry_pick.go
code_frequency.go
commit.go
compare.go Refactor sha1 and time-limited code (#31023) (#31030) 2024-05-21 00:58:21 +08:00
contributors.go Fix Activity Page Contributors dropdown (#31264) (#31269) 2024-06-06 08:14:00 +00:00
download.go
editor_test.go
editor.go Add missed return after ctx.ServerError (#31130) (#31133) 2024-05-28 12:47:11 +02:00
find.go
fork.go
githttp_test.go
githttp.go
helper_test.go
helper.go
issue_content_history.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Fix the display of project type for deleted projects (#31732) (#31734) 2024-07-30 14:05:14 +08:00
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects_test.go
projects.go Fix various problems around projects board view (#30696) (#30902) 2024-05-08 15:46:21 +00:00
pull_review_test.go
pull_review.go
pull.go Avoid returning without written ctx when posting PR (#31843) (#31848) 2024-08-16 13:50:12 -04:00
recent_commits.go
release_test.go
release.go
render.go Fix rendered wiki page link (#31398) (#31407) 2024-06-19 11:23:24 +08:00
repo.go Allow downloading attachments of draft releases (#31369) (#31380) 2024-06-16 20:55:14 +08:00
search_test.go
search.go
topic.go
treelist.go
view_test.go
view.go Fix rendered wiki page link (#31398) (#31407) 2024-06-19 11:23:24 +08:00
wiki_test.go Fix raw wiki links (#31825) (#31845) 2024-08-17 03:19:26 +00:00
wiki.go Fix raw wiki links (#31825) (#31845) 2024-08-17 03:19:26 +00:00