Skip to content

fix: use Repository.HtmlUrl for notification URLs instead of hardcoding github.com#781

Merged
dlvhdr merged 1 commit intodlvhdr:mainfrom
sideshowbarker:fix/ghe-notification-urls
Feb 18, 2026
Merged

fix: use Repository.HtmlUrl for notification URLs instead of hardcoding github.com#781
dlvhdr merged 1 commit intodlvhdr:mainfrom
sideshowbarker:fix/ghe-notification-urls

Conversation

@sideshowbarker
Copy link
Contributor

Summary

  • Use Repository.HtmlUrl from the GitHub API as the base for notification URLs instead of hardcoding https://github.com, fixing “open in browser” on GitHub Enterprise instances
  • Fall back to https://github.com/<FullName> if HtmlUrl is empty (defensive, shouldn't happen in practice)
  • Add GHE-specific test cases and tests for NotificationData.GetUrl()

Fixes #778

…ng github.com

Notification "open in browser" was hardcoded to https://github.com, which
opens the wrong host on GitHub Enterprise instances. The GitHub notifications
API already returns Repository.HtmlUrl with the correct host, so use that
as the base URL instead. Falls back to https://github.com/<FullName> if
HtmlUrl is empty.

Fixes dlvhdr#778
@dlvhdr dlvhdr merged commit 05ae4b1 into dlvhdr:main Feb 18, 2026
3 checks passed
@sideshowbarker sideshowbarker deleted the fix/ghe-notification-urls branch February 18, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] "open in browser" in notifications panel attempts to open in github.com even on GHE

2 participants