Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use raw Wiki links for non-renderable Wiki files #30273

Merged
merged 3 commits into from
Apr 10, 2024

Commits on Apr 3, 2024

  1. Use raw Wiki links for non-renderable Wiki files

    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 go-gitea#27121.
    
    Signed-off-by: Rafael Girão <rafael.s.girao@tecnico.ulisboa.pt>
    rafaelsgirao committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    b333693 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    7d09068 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    bee1e27 View commit details
    Browse the repository at this point in the history