Skip to content

Commit

Permalink
fix joblink when posting new job
Browse files Browse the repository at this point in the history
  • Loading branch information
smltr committed Aug 21, 2024
1 parent 420616e commit f941dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/components/jobitem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const JobItem: React.FC<JobItemProps> = ({ posting, isNew, isPreview }) => (
</Box>
<Box>
<Typography variant="body1" sx={{ fontWeight: "500" }}>
<Link href={posting.jobLink} target="_blank" rel="noopener noreferrer" underline="hover" color="inherit">
<Link href={posting.jobLink.startsWith('http') ? posting.jobLink : `https://${posting.jobLink}`} target="_blank" rel="noopener noreferrer" underline="hover" color="inherit">
{!isPreview ? posting.title : posting.title || "<job title>"}
</Link>
</Typography>
Expand Down

0 comments on commit f941dd5

Please sign in to comment.