a9c71c94309db1f28fc29cbb2d9c062e79c7201f lrnassar Fri Sep 4 14:58:18 2026 -0700 BLAT dated banner: make the news announcement URL an hg.conf setting. refs #37996 blatNewFormNewsUrl, defaulting to the news archive page, so the banner can point at the announcement's anchor once it is published without a CGI rebuild. Documented in ex.hg.conf. diff --git src/hg/hgBlat/hgBlat.c src/hg/hgBlat/hgBlat.c index 9112a8d2d3d..6188f8fe540 100644 --- src/hg/hgBlat/hgBlat.c +++ src/hg/hgBlat/hgBlat.c @@ -830,37 +830,42 @@ /* On the classic search form, offer the JavaScript-built one. Without this the new form's "go back * to the original page" link is a one-way door. * Shown wherever the new form is enabled (blatNewForm), which is what makes the round trip work; * blatNewFormBanner overrides that in either direction. On a machine where the new form is off * there is nothing to advertise, so nothing is printed. */ { if (!cfgOptionBooleanDefault("blatNewFormBanner", cfgOptionBooleanDefault("blatNewForm", FALSE))) return; printBlatBannerStyle(); /* Once a switch-over date is announced (hg.conf blatNewFormSwitchDate, e.g. "October 21"), the * banner names it, so a slipped date is an hg.conf change rather than a CGI build patch. With no * date set, the original "we are testing" invitation is shown. */ char *switchDate = cfgOption("blatNewFormSwitchDate"); if (isNotEmpty(switchDate)) + { + /* Where "news announcement" points; defaults to the news archive until the announcement is + * drafted, then hg.conf can aim it at the item's anchor without a CGI rebuild. */ + char *newsUrl = cfgOptionDefault("blatNewFormNewsUrl", "../goldenPath/newsarch.html"); printf("