bd6e3996c720821a29a4eaf6b8e9972e4c98a028 kate Wed Aug 12 16:50:17 2020 -0700 Add hg.conf var to enable Recommended Track Sets. Remove hgSession URL mod, in favor of hgTracks detecting non-Track-Set session load. Build patch. refs #25601 diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index 4753f2c..1f11cc4 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -164,33 +164,30 @@ /* Add to dy an URL that tells hgSession to load a saved session. * If encode, cgiEncodeFull the URL. * If tryShortLink, print a shortened link that apache can redirect. * The link is an absolute link that includes the server name so people can * copy-paste it into emails. */ { struct dyString *dyTmp = dyStringNew(1024); if (tryShortLink && cfgOptionBooleanDefault("hgSession.shortLink", FALSE) && !stringIn("%2F", userName) && !stringIn("%2F", sessionName)) dyStringPrintf(dyTmp, "http%s://%s/s/%s/%s", cgiAppendSForHttps(), cgiServerNamePort(), userName, sessionName); else dyStringPrintf(dyTmp, "%shgTracks?hgS_doOtherUser=submit&" "hgS_otherUserName=%s&hgS_otherUserSessionName=%s", hLocalHostCgiBinUrl(), userName, sessionName); -// switch off recommended track set panel when changing sessions -dyStringPrintf(dyTmp, "&%s=off", hgsOtherUserSessionLabel); - if (encode) { dyStringPrintf(dy, "%s", cgiEncodeFull(dyTmp->string)); } else { dyStringPrintf(dy, "%s", dyTmp->string); } dyStringFree(&dyTmp); } void printShareMessage(struct dyString *dy, char *userName, char *sessionName, boolean encode) { struct dyString *dyTmp = dyStringNew(0);