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
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>
10 months ago
..
api Fix missed doer (#30231) 10 months ago
common Refactor URL detection (#29960) 11 months ago
install Move context from modules to services (#29440) 12 months ago
private Performance optimization for git push (#30104) 10 months ago
utils Refactor external URL detection (#29973) 11 months ago
web Use raw Wiki links for non-renderable Wiki files (#30273) 10 months ago
init.go Move some asymkey functions to service layer (#28894) 11 months ago