anchor.diff:   page import="org.archive.wayback.util.partition.PartitionSize"
    %><%@
    page import="org.archive.wayback.util.StringFormatter"
  + %><%@
  + page import="org.archive.wayback.util.url.UrlOperations"
    %><%
   UIResults results = UIResults.extractReplay(request);
   WaybackRequest wbRequest = results.getWbRequest();
   ResultURIConverter uriConverter = results.getURIConverter();
  -String contextRoot = wbRequest.getContextPrefix();
  +
  +String staticPrefix = results.getStaticPrefix();
  +String queryPrefix = results.getQueryPrefix();
  +String replayPrefix = results.getReplayPrefix();
  +
   StringFormatter fmt = wbRequest.getFormatter();
  -String staticPrefix = results.getContextConfig("static-prefix");
  -if(staticPrefix == null) {
  -	staticPrefix = contextRoot;
  -}
   
   String graphJspPrefix = results.getContextConfig("graphJspPrefix");
   if(graphJspPrefix == null) {
  -	graphJspPrefix = contextRoot;
  +	graphJspPrefix = queryPrefix;
   }
   CaptureSearchResults cResults = results.getCaptureResults();
   
   String exactDateStr = results.getResult().getCaptureTimestamp();
   Date exactDate = results.getResult().getCaptureDate();
  -String searchUrl = wbRequest.getRequestUrl();
  -String searchUrlSafe = fmt.escapeHtml(wbRequest.getRequestUrl());
  -String searchUrlJS = fmt.escapeJavaScript(wbRequest.getRequestUrl());
  +String searchUrl = 
  +	UrlOperations.stripDefaultPortFromUrl(wbRequest.getRequestUrl());
  +String searchUrlSafe = fmt.escapeHtml(searchUrl);
  +String searchUrlJS = fmt.escapeJavaScript(searchUrl);
   String resolution = wbRequest.getTimelineResolution();
   
   CaptureSearchResult first = null;
  
positive.code: 										<!-- URL FORM -->
  										<table border="0" cellpadding="0" cellspacing="0">
  											<tr>
  												<form action="<%= contextRoot %>query" method="get">
  													<td class="wm-disclaim-label"><%= fmt.format("GraphTimeline.searchLabel") %></td>
  													<td><input type="hidden" name="<%= WaybackRequest.REQUEST_TYPE %>" value="<%= WaybackRequest.REQUEST_CAPTURE_QUERY %>"><input type="text" name="<%= WaybackRequest.REQUEST_URL %>" value="http://" size="24" maxlength="256"></td>
  													<td><input type="submit" name="submit" value="<%= fmt.format("GraphTimeline.searchButtonText") %>"></td>
  
negative.code: text-align:center !important;
  }
  </style>
  <script type="text/javascript" src="<%= staticPrefix %>js/graph-calc.js" ></script>
  <script type="text/javascript">
  var firstDate = <%= firstYearDate.getTime() %>;
  var lastDate = <%= lastYearDate.getTime() %>;
  var wbPrefix = "<%= replayPrefix %>";
  var wbCurrentUrl = "<%= searchUrlJS %>";
  </script>
  <div id="wm-disclaim" dir="ltr" >
  	<table width="100%" border="0" cellpadding="0" cellspacing="3">
  		<tr>
  			<!-- WAYBACK LOGO -->
  			<td rowspan="2" valign="top" align="left"><a href="<%= queryPrefix %>"><img style="padding-right:15px;" src="<%= staticPrefix %>images/wayback_logo_tr.gif" width="153" height="54" border="0"></a></td>
  			<!-- /WAYBACK LOGO -->
  			<td width="99%">
  				<table width="100%" border="0" cellpadding="0" cellspacing="0">
  