2db05803f049c1e8da1d07e27474245f3a928f4b jcasper Mon Oct 19 14:01:23 2015 -0700 Adding base tag to CGI output, refs #16124 diff --git src/hg/lib/web.c src/hg/lib/web.c index a0f8f4c..a44e0a5 100644 --- src/hg/lib/web.c +++ src/hg/lib/web.c @@ -185,30 +185,31 @@ newString = cloneString(textOutBuf); for(ptr1=newString, ptr2=textOutBuf; *ptr2 ; ptr2++) { if (*ptr2 == '<') { for(; *ptr2 && (*ptr2 != '>'); ptr2++) ; } else *ptr1++ = *ptr2; } *ptr1 = 0; htmlTextOut(newString); printf(" </TITLE>\n "); + printf ("<base href=\".\">\n"); webIncludeResourceFile("HGStyle.css"); if (extraStyle != NULL) puts(extraStyle); printf("</HEAD>\n"); printBodyTag(stdout); htmlWarnBoxSetup(stdout);// Sets up a warning box which can be filled with errors as they occur puts(commonCssStyles()); } webStartSectionTables(); if (withLogo) { puts("<TR><TH COLSPAN=1 ALIGN=\"left\">"); if (isEncode) {