diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 20141914b655b..20bb3552fa1e6 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.go @@ -422,7 +422,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() }