Skip to content

Commit

Permalink
Fix report ID link
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcnulty committed Feb 16, 2023
1 parent b97a0d0 commit cd4f6b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/gatsby-site/src/components/reports/ReportCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const ReportCard = ({ item, className = '', incidentId }) => {
>
<div className="flex items-center w-full justify-between">
<div>
<LocalizedLink to={`#r${item.report_number}`} className="max-w-full cursor-pointer">
<LocalizedLink
to={`${window.location.pathname}#r${item.report_number}`}
className="max-w-full cursor-pointer"
>
<h5 className="text-xl font-bold tracking-tight text-gray-900 dark:text-white w-full hover:text-primary-blue">
<Trans ns="landing">{item.title}</Trans>
</h5>
Expand Down

0 comments on commit cd4f6b3

Please sign in to comment.