Skip to content

git_ui: Fix double slash in commit URLs#44996

Merged
cole-miller merged 1 commit intozed-industries:mainfrom
cppcoffee:commit-view
Dec 16, 2025
Merged

git_ui: Fix double slash in commit URLs#44996
cole-miller merged 1 commit intozed-industries:mainfrom
cppcoffee:commit-view

Conversation

@cppcoffee
Copy link
Contributor

Release Notes:

  • Fixed double slash in commit URLs

The github_url variable was generating URLs with an extra slash like
"https://github.com//user/repo/commit/xxxx" due to manual string formatting
of the base_url() result.

Fixed by replacing manual URL construction with the proper
build_commit_permalink() method that uses Url::join() for correct
path handling, consistent with how other Git hosting providers
construct URLs.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 16, 2025
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Dec 16, 2025
@github-project-automation github-project-automation bot moved this to Community Champion PRs in Quality Week – December 2025 Dec 16, 2025
@cppcoffee cppcoffee marked this pull request as draft December 16, 2025 14:49
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
@cppcoffee cppcoffee marked this pull request as ready for review December 16, 2025 15:02
@cole-miller
Copy link
Member

Thanks!

@cole-miller cole-miller enabled auto-merge (squash) December 16, 2025 15:27
@cole-miller cole-miller merged commit 4573a59 into zed-industries:main Dec 16, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from Community Champion PRs to Done in Quality Week – December 2025 Dec 16, 2025
@JosephTLyons JosephTLyons moved this to 🚢 Shipped by Community in Git board Dec 16, 2025
@cppcoffee cppcoffee deleted the commit-view branch December 17, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion Issues filed by our amazing community champions! 🫶

Projects

Status: 🚢 Shipped by Community

Development

Successfully merging this pull request may close these issues.

2 participants