[object Object]

← back to Cncp Failures Mockups

Add noreferrer to "Open in new tab" link

2fdc877f0e6bd2b300e38064f3da5af3d87ff52c · 2026-05-19 17:31:35 -0700 · SteveStudio2

target=_blank links should always pair with rel="noopener noreferrer".

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

Files touched

Diff

commit 2fdc877f0e6bd2b300e38064f3da5af3d87ff52c
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date:   Tue May 19 17:31:35 2026 -0700

    Add noreferrer to "Open in new tab" link
    
    target=_blank links should always pair with rel="noopener noreferrer".
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
 public/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/index.html b/public/index.html
index 12a9fa1..ccc7bb1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -73,7 +73,7 @@ function renderGrid(mode) {
         <h3>${v.title}</h3>
         <div class="desc">${v.desc}</div>
         <a href="${v.id}.html${q}" class="open" onclick="event.stopPropagation(); event.preventDefault(); openFull(${i})">Open full-screen →</a>
-        <a href="${v.id}.html${q}" class="open" style="margin-left:8px" onclick="event.stopPropagation()" target="_blank" rel="noopener">Open in new tab ↗</a>
+        <a href="${v.id}.html${q}" class="open" style="margin-left:8px" onclick="event.stopPropagation()" target="_blank" rel="noopener noreferrer">Open in new tab ↗</a>
       </div>
     </div>`).join('');
   // Enter/Space on a focused card opens it

← c2c9b1a gitignore: protect .env* from accidental commits per MEMORY  ·  back to Cncp Failures Mockups  ·  Block .bak/.pre- snapshot artifacts from static serving + gi c0aa565 →