Skip to content

Commit 4c35671

Browse files
authored
Merge pull request #454 from velopert/feature/home-link
fix: refresh when moving to home
2 parents 2f43074 + 74a1f23 commit 4c35671

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/base/HeaderLogo.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const HeaderLogo: React.FC<HeaderLogoProps> = ({
2222
if (!custom) {
2323
return (
2424
<HeaderLogoBlock>
25-
<Link to="/">
25+
<a href="/">
2626
<Logo data-testid="velog-logo" className="velog-logo" />
27-
</Link>
27+
</a>
2828
</HeaderLogoBlock>
2929
);
3030
}
@@ -33,7 +33,7 @@ const HeaderLogo: React.FC<HeaderLogoProps> = ({
3333
const velogPath = `/@${username}`;
3434
return (
3535
<HeaderLogoBlock>
36-
<VelogLogoLink to="/">
36+
<VelogLogoLink href="/">
3737
<VelogIcon />
3838
</VelogLogoLink>
3939
<Link to={velogPath} className="user-logo">
@@ -74,7 +74,7 @@ const HeaderLogoBlock = styled.div`
7474
}
7575
`;
7676

77-
const VelogLogoLink = styled(Link)`
77+
const VelogLogoLink = styled.a`
7878
color: inherit;
7979
8080
svg {

0 commit comments

Comments
 (0)