diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go
index c37d52640f..30004cefb7 100644
--- a/routers/web/repo/pull.go
+++ b/routers/web/repo/pull.go
@@ -203,6 +203,7 @@ func Fork(ctx *context.Context) {
 func ForkPost(ctx *context.Context) {
 	form := web.GetForm(ctx).(*forms.CreateRepoForm)
 	ctx.Data["Title"] = ctx.Tr("new_fork")
+	ctx.Data["CanForkRepo"] = true
 
 	ctxUser := checkContextUser(ctx, form.UID)
 	if ctx.Written() {