diff --git a/controllers/item_detail.go b/controllers/item_detail.go index 1ee904a85..5721047a8 100644 --- a/controllers/item_detail.go +++ b/controllers/item_detail.go @@ -67,8 +67,10 @@ func (idc *ItemDetailController) Get() { } if project.Public == 0 && len(roleList) == 0 { - idc.Redirect("/signIn?uri="+url.QueryEscape(idc.Ctx.Input.URI()), http.StatusFound) - } else if len(roleList) > 0 { + idc.Redirect("/registry/project", http.StatusFound) + } + + if len(roleList) > 0 { idc.Data["RoleId"] = roleList[0].RoleId } }