Skip to content

Commit

Permalink
changed schema tag url
Browse files Browse the repository at this point in the history
  • Loading branch information
ayobi committed Aug 22, 2023
1 parent a680e4d commit fb11b8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/pages/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ export const ProjectPage: FC = () => {
);
}

const projectHash = projectInfo?.pep_schema?.replace(/\//g, '/#/');

return (
<PageLayout fullWidth footer={false} title={`${namespace}/${project}`}>
{/* breadcrumbs */}
Expand All @@ -208,7 +210,7 @@ export const ProjectPage: FC = () => {
) : null}
</Breadcrumb>
<div className="ms-2 mb-1">
<a className="text-decoration-none" href={`https://schema.databio.org/${projectInfo?.pep_schema}.yaml`}>
<a className="text-decoration-none" href={`https://schema.databio.org/#/${projectHash}`}>
<SchemaTag schema={projectInfo?.pep_schema} />
</a>
</div>
Expand Down

0 comments on commit fb11b8f

Please sign in to comment.