link on entity page to link to correct docs (#2289)

This commit is contained in:
Emma Indal
2020-09-05 20:10:44 +02:00
committed by GitHub
parent d1fc52d740
commit cff489d03d
@@ -104,7 +104,9 @@ export function AboutCard({ entity }: AboutCardProps) {
<IconLinkVertical
label="View Techdocs"
icon={<DocsIcon />}
href={`/docs/${''}`}
href={`/docs/${entity.kind}:${entity.metadata.namespace ?? ''}:${
entity.metadata.name
}`}
/>
</nav>
}