Tried to improve the handling of the visited links in the single page application script, but learned that browsers limit detection of this for privacy reasons.
Instead, retaining the original anchor tags rather than using buttons.