code: public void resolvePageUrls() {
  
  		// TODO: get url from Resource instead of SearchResult?
  		String pageUrl = result.getOriginalUrl();
  		String captureDate = result.getCaptureTimestamp();
  
  		String existingBaseHref = TagMagix.getBaseHref(sb);
  		if (existingBaseHref == null) {
  			insertAtStartOfHead("<base href=\"" + pageUrl + "\" />");
  		} else {
  			pageUrl = existingBaseHref;
  		}
  
  		String markups[][] = {
  				{"FRAME","SRC"},
  				{"META","URL"},
  				{"LINK","HREF"},
  				{"SCRIPT","SRC"},
  				{TagMagix.ANY_TAGNAME,"background"}
  		};
  		// TODO: The classic WM added a js_ to the datespec, so NotInArchives
  		// can return an valid javascript doc, and not cause Javascript errors.
  		for(String tagAttr[] : markups) {
  			TagMagix.markupTagREURIC(sb, uriConverter, captureDate, pageUrl,
  					tagAttr[0], tagAttr[1]);
  		}
  		TagMagix.markupCSSImports(sb,uriConverter, captureDate, pageUrl);
  		TagMagix.markupStyleUrls(sb,uriConverter,captureDate,pageUrl);
  	}
docs: Update URLs inside the page, so those URLs which must be correct at
  page load time resolve correctly to absolute URLs.
  
  This means ensuring there is a BASE HREF tag, adding one if missing,
  and then resolving:
  FRAME-SRC, META-URL, LINK-HREF, SCRIPT-SRC
  tag-attribute pairs against either the existing BASE-HREF, or the
  page's absolute URL if it was missing.