Skip to content

Commit

Permalink
fix(v2): do not process anchor links by router (#2580)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Apr 11, 2020
1 parent 399fcbd commit 476de09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/client/exports/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
) : (
Expand Down

0 comments on commit 476de09

Please sign in to comment.