diff --git a/website/src/css/custom.css b/website/src/css/custom.css
index 1120329d0d..a66bd54a94 100644
--- a/website/src/css/custom.css
+++ b/website/src/css/custom.css
@@ -144,7 +144,7 @@ a.contents__link > code {
     color: var(--ifm-color-primary-lightest);
 }
 
-a:visited {
+a:visited:not(.menu__link, .table-of-contents__link, .navbar__link:not([target="_blank"])) {
   color: var(--ifm-color-primary);
 }
 .navbar .navbar__inner {
@@ -283,4 +283,4 @@ div[class*='announcementBar_'] {
   /* Intentionally override the theme behavior,
   so that the course banner image is effectively cropped*/ 
   z-index: calc(var(--ifm-z-index-fixed) -1) !important;
-}
\ No newline at end of file
+}