anchor.diff:  // If [callback] is present, it will be called after the server response has
   // been processed, and the content has been updated on the page.
   function navigate(path, offset, lineNumber, callback) {
  -  removeHighlight(offset);
  +  const currentOffset = getOffset(window.location.href);
  +  const currentLineNumber = getLine(window.location.href);
  +  removeHighlight(currentOffset, currentLineNumber);
     if (path == window.location.pathname) {
       // Navigating to same file; just scroll into view.
       maybeScrollIntoView(offset, lineNumber);
  +    if (callback !== undefined) {
  +      callback();
  +    }
     } else {
       loadFile(path, offset, lineNumber, callback);
     }
  
positive.code: }
  
  // Remove highlighting from [offset].
  function removeHighlight(offset) {
    if (offset != null) {
      const anchor = document.getElementById("o" + offset);
      if (anchor != null) {
        anchor.classList.remove("target");
      }
    }
  }
  
negative.code:         const a = detailItem.appendChild(document.createElement("a"));
          a.appendChild(document.createTextNode(detail["link"]["text"]));
          a.setAttribute("href", detail["link"]["href"]);
          a.classList.add("nav-link");
          detailItem.appendChild(document.createTextNode(")"));
        }
      }
  