Skip to content

Commit

Permalink
Use rel="noreferrer" with target="_blank" links
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkucerak committed May 1, 2024
1 parent 734d0fb commit 12f3e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Map() {
>
<TileLayer
url={`https://api.mapy.cz/v1/maptiles/outdoor/256/{z}/{x}/{y}?apikey=${API_KEY}`}
attribution='<a href="https://api.mapy.cz/copyright" target="_blank">&copy; Seznam.cz a.s. a další</a>'
attribution='<a href="https://api.mapy.cz/copyright" target="_blank" rel="noreferrer">&copy; Seznam.cz a.s. a další</a>'
/>
<SracLocation />
<MapToilets />
Expand All @@ -26,7 +26,7 @@ export default function Map() {
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/L.Control.Locate.min.css"
/>
<a href="http://mapy.cz/" target="_blank" className="absolute z-[1000] bottom-0"><img alt="Mapy.cz logo" src="https://api.mapy.cz/img/api/logo.svg"/></a>
<a href="http://mapy.cz/" target="_blank" rel="noreferrer" className="absolute z-[1000] bottom-0"><img alt="Mapy.cz logo" src="https://api.mapy.cz/img/api/logo.svg"/></a>
</MapContainer>
);
}

0 comments on commit 12f3e4c

Please sign in to comment.