From 0c778f53f3e2b89ddd79dbf49f592ca67cd5742c Mon Sep 17 00:00:00 2001 From: hazycora Date: Mon, 18 Sep 2023 18:50:08 -0500 Subject: [PATCH] treat tab "overview" as "repositories" in user profiles without profile readme --- routers/web/user/profile.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 71d10ab4c1251..3682acb2e9367 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -77,8 +77,9 @@ func userProfile(ctx *context.Context) { func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileGitRepo *git.Repository, profileReadme *git.Blob) { // if there is a profile readme, default to "overview" page, otherwise, default to "repositories" page + // if there is not a profile readme, the overview tab should be treated as the repositories tab tab := ctx.FormString("tab") - if tab == "" { + if tab == "" || tab == "overview" { if profileReadme != nil { tab = "overview" } else {