Skip to content

Commit 8807a31

Browse files
committed
Normalize homepages from GitHub
1 parent 743d70f commit 8807a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Netkan/Sources/Github/GithubRepo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public sealed class GithubRepo
4848
public JObject Resources => new JObject()
4949
{
5050
{ "repository", HtmlUrl },
51-
{ "homepage", Homepage },
51+
{ "homepage", Net.NormalizeUri(Homepage ?? "") },
5252
// issues_url ends with {/number} which makes it kind of useless
5353
{ "bugtracker", HasIssues ? $"{HtmlUrl}/issues" : null },
5454
{ "discussions", HasDiscussions ? $"{HtmlUrl}/discussions" : null },

0 commit comments

Comments
 (0)