[Bug] Links open Github.com instead of Github Enterprise
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 2.1k
- Fork
- 153
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Short summary
Links to repositories hosted on GitHub Enterprise (GHE) incorrectly open on GitHub.com instead of the configured GitHub Enterprise instance.
### Affected version or release
v1.0.23
### Installation context
_No response_
### What happened?
When viewing a project that is hosted on a GitHub Enterprise (GHE) server, the application's "Open in GitHub" link generates a URL pointing to github.com rather than the configured GitHub Enterprise domain.
As a result, users are redirected to GitHub.com, where the repository does not exist, instead of being taken to the correct repository location in their enterprise environment.
### Steps to reproduce
1. Open Settings.
2. Select a project hosted on a GitHub Enterprise (GHE) instance.
3. Locate and click the Open in GitHub link.
4. Observe that the browser opens a URL on github.com instead of the configured GitHub Enterprise server.
5. The resulting page either returns a 404 error or points to an incorrect repository location.
### Expected behavior
The Open in GitHub link should use the repository's configured GitHub Enterprise base URL and open the repository on the correct GHE instance.
For example:
- Actual: https://github.com/company/project
- Expected: https:///company/project
### Actual behavior
The application always constructs links using the GitHub.com domain, even when the selected project is hosted on GitHub Enterprise.
Impact
Users are unable to navigate directly to repositories hosted on GitHub Enterprise.
Repository links result in broken pages or incorrect destinations.
Creates confusion for organisations that exclusively use GitHub Enterprise.
### Additional context
The issue appears to affect projects configured to use GitHub Enterprise and may indicate that the repository host URL is not being read from the project configuration when generating external repository links.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong luồng Settings, nơi một project được chọn và liên kết "Open in GitHub" được tạo. Tái hiện với một project được lưu trữ trên GitHub Enterprise và theo dõi cách URL của repository được hình thành; hoàn thành khi liên kết sử dụng base URL Enterprise đã cấu hình của project thay vì github.com và mở đúng repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github
- Lĩnh vực
- desktop
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 65/100