Skip to content

Commit 3719aa3

Browse files
sahilkhan117surya4419
authored andcommitted
fix(prevent-full-reload): by changing a tag with Link tag (#i258) (accordproject#259)
* fix(full-reload): Replace <a> tag with <Link> tag to prevent full reloading (accordproject#250) Signed-off-by: Sahil Khan <sahilkhan123098p@gmail.com> * fix(full-reload): rel attribute is unnecessary for internal links (accordproject#250) Signed-off-by: Sahil Khan <sahilkhan123098p@gmail.com> * fix(full-reload): Replace <a> tag with <Link> tag to prevent full reloading (accordproject#258) Signed-off-by: Sahil Khan <sahilkhan123098p@gmail.com> * fix(full-reload): rel attribute is unnecessary for internal links (accordproject#258) Signed-off-by: Sahil Khan <sahilkhan123098p@gmail.com> --------- Signed-off-by: Sahil Khan <sahilkhan123098p@gmail.com> Signed-off-by: surya4419 <suryaa4419@gmail.com>
1 parent f81d9eb commit 3719aa3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/Navbar.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ function Navbar({ scrollToFooter }: { scrollToFooter: any }) {
109109
onMouseEnter={() => setHovered("home")}
110110
onMouseLeave={() => setHovered(null)}
111111
>
112-
<a
113-
href="/"
114-
rel="noopener noreferrer"
112+
<Link
113+
to="/"
115114
style={{ display: "flex", alignItems: "center" }}
116115
>
117116
<Image
@@ -125,7 +124,7 @@ function Navbar({ scrollToFooter }: { scrollToFooter: any }) {
125124
}}
126125
/>
127126
<span style={{ color: "white" }}>Template Playground</span>
128-
</a>
127+
</Link>
129128
</div>
130129
{screens.md && (
131130
<>

0 commit comments

Comments
 (0)