Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Link to new search result
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Sep 11, 2024
1 parent 3baca8a commit 7f0c925
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions frontend/src/components/search/SearchResultsListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ export default function SearchResultsListItem({
opportunity,
agencyNameLookup,
}: SearchResultsListItemProps) {
// TODO: Confirm once deploying to lowers
// relates to https://github.com/HHS/simpler-grants-gov/issues/1521
const opportunityURL =
process.env.NEXT_PUBLIC_ENVIRONMENT === "prod"
? "https://grants.gov"
: "https://test.grants.gov";

const t = useTranslations("Search");

const metadataBorderClasses = `
Expand Down Expand Up @@ -49,7 +42,7 @@ export default function SearchResultsListItem({
<div className="grid-col tablet:order-2">
<h2 className="margin-y-105 line-height-serif-2">
<a
href={`${opportunityURL}/search-results-detail/${opportunity?.opportunity_id}`}
href={`/opportunity/${opportunity?.opportunity_id}`}
className="usa-link usa-link--external"
>
{opportunity?.opportunity_title}
Expand Down

0 comments on commit 7f0c925

Please sign in to comment.