diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 146b94dfdf3..cc200cc4d7b 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.go @@ -449,7 +449,7 @@ func PackageSettingsPost(ctx *context.Context) { redirectURL := ctx.Package.Owner.HomeLink() + "/-/packages" // redirect to the package if there are still versions available - if has, _ := packages_model.ExistVersion(ctx, &packages_model.PackageSearchOptions{PackageID: ctx.Package.Descriptor.Package.ID}); has { + if has, _ := packages_model.ExistVersion(ctx, &packages_model.PackageSearchOptions{PackageID: ctx.Package.Descriptor.Package.ID, IsInternal: util.OptionalBoolFalse}); has { redirectURL = ctx.Package.Descriptor.PackageWebLink() }