You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web
Rafael c1f76aea45
Use raw Wiki links for non-renderable Wiki files (#30273)
In Wiki pages, short-links created to local Wiki files were always
expanded as regular Wiki Links. In particular, if a link wanted to point
to a file that Gitea doesn't know how to render (e.g, a .zip file), a
user following the link would be silently redirected to the Wiki's home
page.

This change makes short-links* in Wiki pages be expanded to raw wiki
links, so these local wiki files may be accessed without manually
accessing their URL.

* only short-links ending in a file extension that isn't renderable are
affected.

Closes #27121.

Signed-off-by: Rafael Girão <rafael.s.girao@tecnico.ulisboa.pt>
Co-authored-by: silverwind <me@silverwind.io>
11 months ago
..
admin Clean up log messages (#30313) 11 months ago
auth Clean up log messages (#30313) 11 months ago
devtest Move context from modules to services (#29440) 1 year ago
events Move context from modules to services (#29440) 1 year ago
explore Refactor topic Find functions and add more tests for pagination (#30127) 11 months ago
feed Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 12 months ago
healthcheck Always enable caches (#28527) 1 year ago
misc Move context from modules to services (#29440) 1 year ago
org Add default board to new projects, remove uncategorized pseudo-board (#29874) 11 months ago
repo Use raw Wiki links for non-renderable Wiki files (#30273) 11 months ago
shared Add API for `Variables` (#29520) 11 months ago
user Clean up log messages (#30313) 11 months ago
base.go Fix panic in storageHandler (#27446) 1 year ago
githttp.go Move context from modules to services (#29440) 1 year ago
goget.go Move context from modules to services (#29440) 1 year ago
home.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 12 months ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Move context from modules to services (#29440) 1 year ago
passkey.go Move context from modules to services (#29440) 1 year ago
swagger_json.go Move context from modules to services (#29440) 1 year ago
web.go Add default board to new projects, remove uncategorized pseudo-board (#29874) 11 months ago
webfinger.go Move context from modules to services (#29440) 1 year ago