From 88776cbb7283e17a8b878ad745b1ccc6f6b8d8be Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Tue, 21 Dec 2021 06:24:05 +0200 Subject: [PATCH] Fixed user profile url double-escaping --- src/hmnurl/urls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hmnurl/urls.go b/src/hmnurl/urls.go index 560f5db7..ab089e9f 100644 --- a/src/hmnurl/urls.go +++ b/src/hmnurl/urls.go @@ -189,7 +189,7 @@ func BuildUserProfile(username string) string { if len(username) == 0 { panic(oops.New(nil, "Username must not be blank")) } - return Url("/m/"+url.PathEscape(username), nil) + return Url("/m/"+username, nil) } var RegexUserSettings = regexp.MustCompile(`^/settings$`)