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.
🔄 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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
main← Head:codex/fix-issue-232-external-url-links📝 Commits (1)
c89ec93fix 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
giteaConfig.externalUrlwhen configuredRationale
When
GITEA_URLpoints to an internal service (for examplehttp://gitea:3000) andGITEA_EXTERNAL_URLis 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.tsCloses #232
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.