276a54d43de46e302347b921531a45ef266b55d4
max
  Fri Sep 22 05:02:12 2023 -0700
adding link to parent track for composite children trackUi page, refs #32263

diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c
index 0fece699..7222fe5 100644
--- src/hg/hgTrackUi/hgTrackUi.c
+++ src/hg/hgTrackUi/hgTrackUi.c
@@ -3320,30 +3320,37 @@
             if (sameString(grp->name,tdb->grp))
                 {
                 printf("&nbsp;&nbsp;<B style='font-size:100%%;'>"
                        "(<A HREF=\"%s?%s=%s&c=%s&hgTracksConfigPage=configure"
                        "&hgtgroup_%s_close=0#%sGroup\" title='%s tracks in track configuration "
                        "page'><IMG height=12 src='../images/ab_up.gif'>All %s%s</A>)</B>",
                        hgTracksName(), cartSessionVarName(), cartSessionId(cart),chromosome,
                        tdb->grp,tdb->grp,grp->label,grp->label,
                        endsWith(grp->label," Tracks")?"":" tracks");
                 break;
                 }
             }
         grpFreeList(&grps);
         }
 
+    // incoming links from Google searches can go directly to a composite child trackUi page: tell users 
+    // that they're inside a container now and can go back up the hierarchy
+    if (tdbGetComposite(tdb)) {
+        printf("<p>This track is a member of the composite container track \"%s\".<br>", tdb->parent->shortLabel);
+        printf("<a href='hgTrackUi?db=%s&c=%s&g=%s'>Click here</a> to display the container configuration page.", database, chromosome, tdb->parent->track);
+    }
+
     }
 puts("<BR><BR>");
 
 if (tdbIsSuperTrackChild(tdb))
     showSupertrackInfo(tdb);
 
 if (ct && sameString(tdb->type, "maf"))
     tdb->canPack = TRUE;
 else if (sameString(tdb->track, WIKI_TRACK_TABLE))
     // special case wikiTrack (there's no trackDb entry); fixes redmine 2395
     tdb->canPack = TRUE;
 else if (sameString(tdb->type, "halSnake"))
     tdb->canPack = TRUE;
 else if (!startsWith("bigWig", tdb->type) && startsWith("big", tdb->type))
     tdb->canPack = TRUE;