Skip to content

Commit 0c778f5

Browse files
committed
treat tab "overview" as "repositories" in user profiles without profile readme
1 parent 8099238 commit 0c778f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/web/user/profile.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ func userProfile(ctx *context.Context) {
7777

7878
func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileGitRepo *git.Repository, profileReadme *git.Blob) {
7979
// if there is a profile readme, default to "overview" page, otherwise, default to "repositories" page
80+
// if there is not a profile readme, the overview tab should be treated as the repositories tab
8081
tab := ctx.FormString("tab")
81-
if tab == "" {
82+
if tab == "" || tab == "overview" {
8283
if profileReadme != nil {
8384
tab = "overview"
8485
} else {

0 commit comments

Comments
 (0)