File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ export const BaseLink = forwardRef<IProps, "a">(
90
90
91
91
const commonProps : LinkProps & { ref : React . ForwardedRef < any > } = {
92
92
ref,
93
- href : to ,
94
93
dir,
95
94
...restProps ,
96
95
}
@@ -101,6 +100,7 @@ export const BaseLink = forwardRef<IProps, "a">(
101
100
if ( isHash ) {
102
101
return (
103
102
< ChakraLink
103
+ href = { to }
104
104
onClick = { ( e ) => {
105
105
// only track events on external links and hash links
106
106
if ( ! isHash ) {
@@ -124,6 +124,7 @@ export const BaseLink = forwardRef<IProps, "a">(
124
124
if ( isExternal || isPdf || isStatic ) {
125
125
return (
126
126
< ChakraLink
127
+ href = { to }
127
128
isExternal
128
129
onClick = { ( e ) => {
129
130
// only track events on external links and hash links
@@ -159,6 +160,7 @@ export const BaseLink = forwardRef<IProps, "a">(
159
160
return (
160
161
< ChakraLink
161
162
as = { IntlLink }
163
+ to = { to }
162
164
language = { language }
163
165
partiallyActive = { isPartiallyActive }
164
166
activeStyle = {
You can’t perform that action at this time.
0 commit comments