diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go
index c0b449ea5b..d07bba3004 100644
--- a/modules/markup/sanitizer.go
+++ b/modules/markup/sanitizer.go
@@ -179,6 +179,7 @@ func createDefaultPolicy() *bluemonday.Policy {
// repository descriptions.
func createRepoDescriptionPolicy() *bluemonday.Policy {
policy := bluemonday.NewPolicy()
+ policy.AllowStandardURLs()
// Allow italics and bold.
policy.AllowElements("i", "b", "em", "strong")
diff --git a/modules/markup/sanitizer_test.go b/modules/markup/sanitizer_test.go
index b7b8792bd7..163620c2ec 100644
--- a/modules/markup/sanitizer_test.go
+++ b/modules/markup/sanitizer_test.go
@@ -82,12 +82,15 @@ func TestDescriptionSanitizer(t *testing.T) {
`THUMBS UP`, `THUMBS UP`,
`Hello World`, `Hello World`,
`
`, ``,
- `https://example.com`, `https://example.com`,
+ `https://example.com`, `https://example.com`,
`Important!`, `Important!`,
`Click me! Nothing to see here.
`, `Click me! Nothing to see here.`,
``, ``,
`I have a strong opinion about this.`, `I have a strong opinion about this.`,
`Provides alternative wg(8)
tool`, `Provides alternative wg(8)
tool`,
+ `Click me.`, `Click me.`,
+ `Click me.`, `Click me.`,
+ `Click me.`, `Click me.`,
}
for i := 0; i < len(testCases); i += 2 {