We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 248756d commit 8c7e9aaCopy full SHA for 8c7e9aa
src/shared/AppLink/AppLink.tsx
@@ -33,9 +33,7 @@ function useCompleteProps(
33
34
const propsLink = pageConfig?.isExternalLink
35
? { href: path }
36
- : Component === 'a'
37
- ? { href: path }
38
- : { to: path || '/' }
+ : { to: path || '/' }
39
40
const propsTarget = pageConfig?.openNewTab ? { target: '_blank' } : {}
41
const propsActive = Component === NavLink ? { activeClassName } : {}
@@ -45,6 +43,7 @@ function useCompleteProps(
45
43
...propsTarget,
46
44
...props,
47
...propsActive,
+ ...(Component === 'a' && { to: undefined }),
48
}
49
50
0 commit comments