We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a33ebcc + 2ef14aa commit d1d9de8Copy full SHA for d1d9de8
1 file changed
dotcom-rendering/src/components/Button/utils.tsx
@@ -9,7 +9,7 @@ const platformHostnames = [
9
];
10
11
export const isExternalLink = (url: string) =>
12
- platformHostnames.includes(new URL(url).hostname);
+ !platformHostnames.includes(new URL(url).hostname);
13
14
export const getPropsForLinkUrl = (label: string) => ({
15
rel: 'noreferrer noopener',
0 commit comments