1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

fix(doclinks): fix help link paths [EE-6861] (#11418)

This commit is contained in:
Matt Hook 2024-03-19 11:46:41 +13:00 committed by GitHub
parent bd3440bf3c
commit 07de1b2c06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -1,9 +1,11 @@
import { ReactNode } from 'react';
import { useDocsUrl } from '../PageHeader/ContextHelp/ContextHelp';
type HelpLinkProps = {
docLink?: string;
docLink: string;
target?: string;
children?: React.ReactNode;
children?: ReactNode;
};
export function HelpLink({
@ -14,7 +16,7 @@ export function HelpLink({
const docsUrl = useDocsUrl(docLink);
return (
<a href={docsUrl} target={target} rel="noreferrer">
<a href={docsUrl} target={target} rel="noopener noreferrer">
{children}
</a>
);