fix(ui): open raw file links in new tab (#581) #600

Merged
jmiller merged 1 commits from fix/581-raw-button-new-tab into main 2026-06-11 21:14:49 +00:00
Owner

Summary

  • Raw and "View Raw" links now open in a new tab (target="_blank") so the user stays on the file view page
  • Updated across all templates where the raw link appears

Changes

  • templates/repo/view_file.tmpl: Raw button + View Raw fallback link
  • templates/repo/blame.tmpl: Raw button in blame view
  • templates/shared/filetoolarge.tmpl: View Raw link for oversized files
  • templates/repo/settings/lfs_file.tmpl: View Raw link in LFS file view

Closes #581

## Summary - Raw and "View Raw" links now open in a new tab (`target="_blank"`) so the user stays on the file view page - Updated across all templates where the raw link appears ## Changes - `templates/repo/view_file.tmpl`: Raw button + View Raw fallback link - `templates/repo/blame.tmpl`: Raw button in blame view - `templates/shared/filetoolarge.tmpl`: View Raw link for oversized files - `templates/repo/settings/lfs_file.tmpl`: View Raw link in LFS file view Closes #581
jmiller added 1 commit 2026-06-11 20:44:17 +00:00
fix(ui): open raw file links in new tab (#581)
Generic: Project CI / Tests (pull_request) Blocked by required conditions
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Universal: PR Check / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Branch Policy Check / Verify merge target (pull_request) Failing after 2s
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 13s
Generic: Repo Health / Scripts governance (push) Blocked by required conditions
Generic: Repo Health / Repository health (push) Blocked by required conditions
Generic: Repo Health / Report Issues (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 3s
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
Universal: Auto Version Bump / Version Bump (push) Failing after 13s
Universal: Build & Release / Promote to RC (pull_request) Successful in 41s
PR RC Release / Build RC Release (pull_request) Failing after 44s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 45s
Generic: Project CI / Lint & Validate (pull_request) Successful in 47s
998f971246
Raw and View Raw links now open in a new tab so the user stays on
the file view page. Updated in view_file, blame, filetoolarge, and
LFS file templates.

Co-Authored-By: Moko Consulting <hello@mokoconsulting.tech>
jmiller closed this pull request 2026-06-11 20:44:39 +00:00
jmiller deleted branch fix/581-raw-button-new-tab 2026-06-11 20:44:42 +00:00
jmiller reopened this pull request 2026-06-11 21:13:20 +00:00
jmiller merged commit 9b0eaf937a into main 2026-06-11 21:14:49 +00:00
Sign in to join this conversation.