mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
fix(v2): do not process anchor links by router (#2580)
This commit is contained in:
parent
399fcbd7eb
commit
476de09ef5
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ function Link(props) {
|
|||
};
|
||||
}, [targetLink, IOSupported, isInternal]);
|
||||
|
||||
return !targetLink || !isInternal ? (
|
||||
return !targetLink || !isInternal || targetLink.startsWith('#') ? (
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
<a {...props} href={targetLink} />
|
||||
) : (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue