Skip to content

Commit 1aed940

Browse files
alessiopelliccionethePunderWoman
authored andcommitted
fix(devtools): ensure external docs link opens correctly from extension popup
Adds target="_blank" and rel="noopener noreferrer" to prevent tab-nabbing and follow modern security best practices.
1 parent c5c1689 commit 1aed940

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

devtools/projects/shell-browser/src/popups/production.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ <h4 class="header-text">Angular DevTools</h4>
5656
<section>
5757
<p>
5858
Angular application running in
59-
<a href="https://angular.dev/api/core/enableProdMode">production mode</a>.
59+
<a
60+
href="https://angular.dev/api/core/enableProdMode"
61+
target="_blank"
62+
rel="noopener noreferrer"
63+
>production mode</a
64+
>.
6065
</p>
6166
<p>We recommend using DevTools with apps in dev mode, running <code>ng serve</code>.</p>
6267
</section>

0 commit comments

Comments
 (0)