fix(ui): add raw file link button to file view #578

Closed
opened 2026-06-07 18:14:06 +00:00 by jmiller · 1 comment
Owner

Problem

When viewing a file in the repository, there is no visible "Raw" link/button to access the raw file content directly (e.g., /:owner/:repo/raw/branch/main/path/to/file).

Expected Behavior

A "Raw" button should appear in the file view header (next to the edit/delete buttons) that links directly to the raw file endpoint, similar to GitHub's raw button.

Use Case

  • Quickly copy raw file URLs for embedding, curl, or scripting
  • Direct download of individual files without cloning
  • CDN and update server integrations that need raw file URLs
## Problem When viewing a file in the repository, there is no visible "Raw" link/button to access the raw file content directly (e.g., `/:owner/:repo/raw/branch/main/path/to/file`). ## Expected Behavior A "Raw" button should appear in the file view header (next to the edit/delete buttons) that links directly to the raw file endpoint, similar to GitHub's raw button. ## Use Case - Quickly copy raw file URLs for embedding, curl, or scripting - Direct download of individual files without cloning - CDN and update server integrations that need raw file URLs
Author
Owner

Branch created: feature/578-fix-ui-add-raw-file-link-button-to-file-

git fetch origin
git checkout feature/578-fix-ui-add-raw-file-link-button-to-file-
Branch created: [`feature/578-fix-ui-add-raw-file-link-button-to-file-`](https://git.mokoconsulting.tech/MokoConsulting/MokoGitea/src/branch/feature/578-fix-ui-add-raw-file-link-button-to-file-) ```bash git fetch origin git checkout feature/578-fix-ui-add-raw-file-link-button-to-file- ```
Sign in to join this conversation.