Skip to content

Commit

Permalink
Append /api to document link (#42)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Sep 20, 2023
1 parent 993144c commit 04e91f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DocumentList/DocumentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const DocumentList: React.FunctionComponent<DocumentListProps> = (props:
<div className="cds--form-item">
<label className="cds-label">Documents</label>
<UnorderedList className="document-list-ul" isExpressive={true} nested={false}>
{props.documents.map(doc => (<ListItem key={doc.id}><a href={doc.path}>{doc.name}</a></ListItem>))}
{props.documents.map(doc => (<ListItem key={doc.id}><a href={`/api/${doc.path}`}>{doc.name}</a></ListItem>))}
</UnorderedList>
</div>
</div>
Expand Down

0 comments on commit 04e91f0

Please sign in to comment.