[PR #233] [MERGED] fix: use external URL for Gitea repo links #1852

Closed
opened 2026-04-27 19:13:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/233
Author: @arunavo4
Created: 3/17/2026
Status: Merged
Merged: 3/17/2026
Merged by: @arunavo4

Base: mainHead: codex/fix-issue-232-external-url-links


📝 Commits (1)

  • c89ec93 fix repo links to use external gitea url

📊 Changes

5 files changed (+79 additions, -32 deletions)

View changed files

📝 src/components/dashboard/RepositoryList.tsx (+2 -11)
📝 src/components/organizations/OrganizationsList.tsx (+2 -11)
📝 src/components/repositories/RepositoryTable.tsx (+2 -10)
src/lib/gitea-url.test.ts (+45 -0)
src/lib/gitea-url.ts (+28 -0)

📄 Description

Summary

  • fix repository links on the repositories page to use giteaConfig.externalUrl when configured
  • add a shared Gitea web URL helper used by repository table, dashboard repository list, and organizations list
  • add regression tests for external URL precedence and URL normalization

Rationale

When GITEA_URL points to an internal service (for example http://gitea:3000) and GITEA_EXTERNAL_URL is configured, repo links should point to the external/public URL. This patch aligns repository links with existing organization-link behavior and prevents regressions.

Testing

  • bun test src/lib/gitea-url.test.ts

Closes #232


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RayLabsHQ/gitea-mirror/pull/233 **Author:** [@arunavo4](https://github.com/arunavo4) **Created:** 3/17/2026 **Status:** ✅ Merged **Merged:** 3/17/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `codex/fix-issue-232-external-url-links` --- ### 📝 Commits (1) - [`c89ec93`](https://github.com/RayLabsHQ/gitea-mirror/commit/c89ec934a77fea4636d88c43b5f94aeaa1782b88) fix repo links to use external gitea url ### 📊 Changes **5 files changed** (+79 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `src/components/dashboard/RepositoryList.tsx` (+2 -11) 📝 `src/components/organizations/OrganizationsList.tsx` (+2 -11) 📝 `src/components/repositories/RepositoryTable.tsx` (+2 -10) ➕ `src/lib/gitea-url.test.ts` (+45 -0) ➕ `src/lib/gitea-url.ts` (+28 -0) </details> ### 📄 Description ## Summary - fix repository links on the repositories page to use `giteaConfig.externalUrl` when configured - add a shared Gitea web URL helper used by repository table, dashboard repository list, and organizations list - add regression tests for external URL precedence and URL normalization ## Rationale When `GITEA_URL` points to an internal service (for example `http://gitea:3000`) and `GITEA_EXTERNAL_URL` is configured, repo links should point to the external/public URL. This patch aligns repository links with existing organization-link behavior and prevents regressions. ## Testing - `bun test src/lib/gitea-url.test.ts` Closes #232 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-27 19:13:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#1852