Skip to content

Commit

Permalink
fix: Make forest-docs base url absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
raulsteurer committed Oct 2, 2023
1 parent 898f2e2 commit b53ff76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/OperationClass/OperationClass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
Link as BoemlyLink,
} from 'boemly';
import { TableWrapper } from '../TableWrapper';
import { FOREST_DOCS_URI } from '../../constants/integrations';

interface Species {
/** Free text title of the species */
Expand Down Expand Up @@ -90,7 +91,10 @@ export const OperationClass: React.FC<OperationClassProps> = ({
<Tr key={index}>
<Td>{species.title}</Td>
<Td>
<BoemlyLink as={Link} href={`/yieldTables/${species.yieldTable}`}>
<BoemlyLink
as={Link}
href={`${FOREST_DOCS_URI}/yieldTables/${species.yieldTable}`}
>
{yieldTables[species.yieldTable].meta.title}
</BoemlyLink>
</Td>
Expand Down
1 change: 1 addition & 0 deletions src/constants/integrations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const FOREST_DOCS_URI = 'https://forest-docs.tree.ly';

0 comments on commit b53ff76

Please sign in to comment.