Skip to content

Commit c6248f2

Browse files
author
John Rogers
committed
Update Sidebar component to open Harmony link in a new tab by adding target attribute to anchor tags.
1 parent 1f9ad50 commit c6248f2

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/components/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default function Sidebar() {
135135
alignItems: "center",
136136
}}
137137
>
138-
<a href="https://harmonydata.ac.uk">
138+
<a href="https://harmonydata.ac.uk" target="harmonyHome">
139139
<Image
140140
src={getAssetPrefix() + "harmony.png"}
141141
alt="Harmony Logo"
@@ -292,7 +292,7 @@ export default function Sidebar() {
292292
>
293293
{/* Logo */}
294294
<Box sx={{ p: 1, pt: 3, display: "flex", justifyContent: "center" }}>
295-
<a href="https://harmonydata.ac.uk">
295+
<a href="https://harmonydata.ac.uk" target="harmonyHome">
296296
<Image
297297
src={getAssetPrefix() + "harmony.png"}
298298
alt="Harmony Logo"

src/components/Sidebar/index.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function Sidebar() {
5757
>
5858
{/* Logo */}
5959
<Box sx={{ display: "flex", alignItems: "center" }}>
60-
<a href="https://harmonydata.ac.uk">
60+
<a href="https://harmonydata.ac.uk" target="harmonyHome">
6161
<Box
6262
component="img"
6363
src="/harmony.png"
@@ -118,14 +118,14 @@ export default function Sidebar() {
118118
>
119119
{/* Logo */}
120120
<Box sx={{ p: 1, pt: 3, display: "flex", justifyContent: "center" }}>
121-
<a href="https://harmonydata.ac.uk">
122-
<Box
123-
component="img"
124-
src="/harmony.png"
125-
alt="Harmony Logo"
126-
sx={{ width: 48, height: 48, objectFit: "contain" }}
127-
/>
128-
</a>
121+
<a href="https://harmonydata.ac.uk" target="harmonyHome">
122+
<Box
123+
component="img"
124+
src="/harmony.png"
125+
alt="Harmony Logo"
126+
sx={{ width: 48, height: 48, objectFit: "contain" }}
127+
/>
128+
</a>
129129
</Box>
130130

131131
{/* Navigation Items */}

0 commit comments

Comments
 (0)