Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions src/pages/trees/[treeid].js
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,15 @@ export default function Tree({
entityType="Planting Organization"
buttonText="Meet the Organization"
cardImageSrc={organization?.logo_url || imagePlaceholder}
link={`/organizations/${
organization.id
}?keyword=${nextExtraKeyword}${isEmbed ? '&embed=true' : ''}`}
link={`/organizations/${organization.id}${
nextExtraKeyword
? `?keyword=${nextExtraKeyword}`
: ''
}${
isEmbed
? `${nextExtraKeyword ? '&' : '?'}embed=true`
: ''
}`}
/>
</Box>
)}
Expand All @@ -594,8 +600,14 @@ export default function Tree({
buttonText="Meet the Planter"
cardImageSrc={planter?.image_url || imagePlaceholder}
rotation={planter?.image_rotation}
link={`/planters/${planter.id}?keyword=${nextExtraKeyword}${
isEmbed ? '&embed=true' : ''
link={`/planters/${planter.id}${
nextExtraKeyword
? `?keyword=${nextExtraKeyword}`
: ''
}${
isEmbed
? `${nextExtraKeyword ? '&' : '?'}embed=true`
: ''
}`}
/>
</Box>
Expand Down
20 changes: 16 additions & 4 deletions src/pages/v2/captures/[captureid].js
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,14 @@ export default function Capture({
buttonText="Meet the Organization"
cardImageSrc={logo_url || imagePlaceholder}
// TODO: this wont work until organizationsV2 page is completed
link={`/stakeholder/stakeholders/${id}?keyword=${nextExtraKeyword}${
isEmbed ? '&embed=true' : ''
link={`/stakeholder/stakeholders/${id}${
nextExtraKeyword
? `?keyword=${nextExtraKeyword}`
: ''
}${
isEmbed
? `${nextExtraKeyword ? '&' : '?'}embed=true`
: ''
}`}
/>
</Box>
Expand All @@ -597,8 +603,14 @@ export default function Capture({
cardImageSrc={grower?.image_url || imagePlaceholder}
rotation={grower?.image_rotation}
// TODO: this wont work until growers page is completed
link={`/grower-accounts/${grower.id}?keyword=${nextExtraKeyword}${
isEmbed ? '&embed=true' : ''
link={`/grower-accounts/${grower.id}${
nextExtraKeyword
? `?keyword=${nextExtraKeyword}`
: ''
}${
isEmbed
? `${nextExtraKeyword ? '&' : '?'}embed=true`
: ''
}`}
/>
</Box>
Expand Down