We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FormatInt
Sprint
1 parent 48ccd32 commit 35a5986Copy full SHA for 35a5986
routers/web/admin/users.go
@@ -6,7 +6,6 @@
6
package admin
7
8
import (
9
- "fmt"
10
"net/http"
11
"strconv"
12
"strings"
@@ -188,7 +187,7 @@ func NewUserPost(ctx *context.Context) {
188
187
}
189
190
ctx.Flash.Success(ctx.Tr("admin.users.new_success", u.Name))
191
- ctx.Redirect(setting.AppSubURL + "/admin/users/" + fmt.Sprint(u.ID))
+ ctx.Redirect(setting.AppSubURL + "/admin/users/" + strconv.FormatInt(u.ID, 10))
192
193
194
func prepareUserInfo(ctx *context.Context) *models.User {
0 commit comments