We render internal links as anchor tags that is only used if javascript is disabled. However, depending on how one might visit pages these anchor hrefs can be marked as visited and thus show as a different color, usually purple instead of blue.
We also manipulate the browser's url to construct our lineup version. This interferes with the browser's understanding of visited because it never sees the html version when we perform the linking in javascript. This stackoverflow answer suggests that we could coax the browser to understand that we are in fact visiting pages.
https://stackoverflow.com/questions/795654/using-javascript-to-mark-a-link-as-visited
