mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-24 05:28:01 +02:00
fix(v2): isInternal targetLink validation (#2195)
* docs(v2): showcase user neutronjs * fix(v2): isInternal url validation
This commit is contained in:
parent
b344fa8440
commit
d099bd2ee8
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ function Link(props) {
|
||||||
};
|
};
|
||||||
}, [targetLink, IOSupported, isInternal]);
|
}, [targetLink, IOSupported, isInternal]);
|
||||||
|
|
||||||
return !targetLink || !isInternal ? (
|
return !targetLink || !isInternal(targetLink) ? (
|
||||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||||
<a {...props} href={targetLink} />
|
<a {...props} href={targetLink} />
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue