32aa4e255c05eeaa4fdce8382311e47db4006f29
braney
  Wed Jul 13 13:40:57 2022 -0700
save out cart when giving user chance to redirect to a different
machine.  This preserves the default cart contents.

diff --git src/hg/lib/web.c src/hg/lib/web.c
index 7156252..5ca390f 100644
--- src/hg/lib/web.c
+++ src/hg/lib/web.c
@@ -1615,21 +1615,22 @@
 	    "<h3 style=\"background-color: #97D897; text-align: left; margin-top:0px; margin-bottom:0px;\">"
 	    "&nbsp;You might want to navigate to your nearest mirror - %s"
 	    "</h3> "
 	    "<ul style=\"margin:5px;\">",
 	    newDomain);
 	    jsOnEventById("click","redirectTd", "document.getElementById('redirectTd').innerHTML='';");
 	    
 	    printf("<li>User settings (sessions and custom tracks) <B>will differ</B> between sites."
 		"<idiv style=\"float:right;\"><a href=\"../goldenPath/help/genomeEuro.html#sessions\">Read more.</a></idiv>");
 	    printf("<li>Take me to  <a href=\"%s\">%s</a> </li>",
 		newUri, newDomain);
 	    printf("<li>Let me stay here   <a href=\"%s\">%s</a>",
 		oldUri, oldDomain );
 	    printf("</div></TD></TR>\n");
 	    jsInlineFinish();
+            cartCheckout(&cart);
             exit(0);
             }
         hDisconnectCentral(&centralConn);
         }
     }
 }