fix(v2): do not process anchor links by router (#2580)

This commit is contained in:
Alexey Pyltsyn 2020-04-11 18:00:32 +03:00 committed by GitHub
parent 399fcbd7eb
commit 476de09ef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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} />
) : (