[object Object]

← back to 1970swallpaper

fix: add noopener noreferrer to external _blank links

67008153fc08888a901f5d92eb3910abb52a31dd · 2026-05-19 08:33:00 -0700 · SteveStudio2

- window.open new-tab call now passes noopener,noreferrer features
- Facebook anchor rel upgraded from noopener to noopener noreferrer

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 67008153fc08888a901f5d92eb3910abb52a31dd
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Tue May 19 08:33:00 2026 -0700

    fix: add noopener noreferrer to external _blank links
    
    - window.open new-tab call now passes noopener,noreferrer features
    - Facebook anchor rel upgraded from noopener to noopener noreferrer
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
 public/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/index.html b/public/index.html
index bdf6212..fd0a36b 100644
--- a/public/index.html
+++ b/public/index.html
@@ -356,7 +356,7 @@ textarea:focus-visible,
   
     <div class="footer-col">
       <h4>Social</h4>
-      <a class="fb-link" href="https://www.facebook.com/SteveAbramsDesigns.DesignerWallcoverings" target="_blank" rel="noopener">Facebook</a>
+      <a class="fb-link" href="https://www.facebook.com/SteveAbramsDesigns.DesignerWallcoverings" target="_blank" rel="noopener noreferrer">Facebook</a>
     </div>
   </div>
   <div class="footer-bottom">
@@ -424,7 +424,7 @@ textarea:focus-visible,
       const isCurrent = n.dataset.slug === SLUG;
       n.querySelector('circle').setAttribute('fill-opacity', isCurrent ? '1' : '0.55');
     });
-    n.addEventListener('click', () => window.open('https://' + n.dataset.slug + '.com', '_blank'));
+    n.addEventListener('click', () => window.open('https://' + n.dataset.slug + '.com', '_blank', 'noopener,noreferrer'));
   });
 })();
 </script>

← 8229830 feat: clean-URL routes for static pages + remove dead nav li  ·  back to 1970swallpaper  ·  stage2: wire microsite catalog + admin CRUD + grid/list view 5839c6b →