diff --git a/src/main/scala/gitbucket/core/view/helpers.scala b/src/main/scala/gitbucket/core/view/helpers.scala index 696782d..3b6e815 100644 --- a/src/main/scala/gitbucket/core/view/helpers.scala +++ b/src/main/scala/gitbucket/core/view/helpers.scala @@ -255,7 +255,7 @@ /** * Generates the url to the account page. */ - def url(userName: String)(implicit context: Context): String = s"${context.path}/${userName}" + def url(userName: String)(implicit context: Context): String = s"${context.path}/${StringUtil.urlEncode(userName)}" /** * Returns the url to the root of assets.