← back to Museumwallpaper
Add rel=noopener noreferrer to external target=_blank links
2c9c51b90c38a4c63a17f288fe944fa77c7b632c · 2026-05-19 08:06:58 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
M public/dw-fleet-nav.jsM public/index.html
Diff
commit 2c9c51b90c38a4c63a17f288fe944fa77c7b632c
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue May 19 08:06:58 2026 -0700
Add rel=noopener noreferrer to external target=_blank links
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
public/dw-fleet-nav.js | 2 +-
public/index.html | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/dw-fleet-nav.js b/public/dw-fleet-nav.js
index 6fa2799..f2b546d 100644
--- a/public/dw-fleet-nav.js
+++ b/public/dw-fleet-nav.js
@@ -235,7 +235,7 @@ header .mobile-toggle.dw-fn-hidden { display: none !important; }
});
var s2 = '<div class="dw-fn-section"><h4>Sister Brands</h4>' +
sister.map(function (f) {
- return '<a class="dw-fn-link" href="' + f.url + '" target="_blank" rel="noopener">' + f.name + '</a>';
+ return '<a class="dw-fn-link" href="' + f.url + '" target="_blank" rel="noopener noreferrer">' + f.name + '</a>';
}).join('') + '</div>';
drawer.innerHTML = s1 + s2;
diff --git a/public/index.html b/public/index.html
index 23d9bf2..9bd4f8e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -353,7 +353,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">
@@ -421,7 +421,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>
← 55b94fc Add clean-URL routes for /about and static info pages
·
back to Museumwallpaper
·
stage2: wire microsite catalog + admin CRUD + grid/list view 9cc2568 →