Skip to content

Commit

Permalink
fix /media links
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Dec 21, 2024
1 parent 2419c7f commit 1f4958b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Archive/Archive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PublicationButton: FC<{
publication: Publication
}> = ({publication}) => {
return (
<Link variant="button2" href={`/api${publication.file}`} target="_blank">
<Link variant="button2" href={publication.file} target="_blank">
{publication.name}
</Link>
)
Expand Down
6 changes: 3 additions & 3 deletions src/components/CompetitionPage/CompetitionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ export const CompetitionPage: FC<CompetitionPageProps> = ({
</Grid>
<Grid xs={2} display="flex" justifyContent="end">
{results && (
<Link variant="button2" key={results.id} href={`/api${results.file}`} target="_blank">
<Link variant="button2" key={results.id} href={results.file} target="_blank">
{PublicationTypes.RESULTS.display_name}
</Link>
)}
</Grid>
<Grid xs={2} display="flex" justifyContent="end">
{solutions ? (
<Link variant="button2" key={solutions.id} href={`/api${solutions.file}`} target="_blank">
<Link variant="button2" key={solutions.id} href={solutions.file} target="_blank">
{PublicationTypes.SOLUTIONS.display_name}
</Link>
) : (
problems && (
<Link variant="button2" key={problems.id} href={`/api${problems.file}`} target="_blank">
<Link variant="button2" key={problems.id} href={problems.file} target="_blank">
{PublicationTypes.PROBLEMS.display_name}
</Link>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const UpcomingOrCurrentEventInfo: FC<{event: Event; name: string; shortNa
</Typography>
<Stack direction="row" sx={{justifyContent: 'end', gap: {xs: 1, sm: 2}}}>
{invitationFile && (
<Link variant="button2" href={`/api/${invitationFile.name}`}>
<Link variant="button2" href={invitationFile.name ?? undefined} target="_blank">
Pozvánka
</Link>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/PublicationUploader/PublicationUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const PublicationUploader: FC<PublicationUploaderProps> = ({semesterId, o
<Stack direction="row" gap={2} alignItems="center">
<Typography variant="body1">{order}. Časopis:</Typography>
{publication && (
<Link variant="button2" href={`/api${publication.file}`} target="_blank">
<Link variant="button2" href={publication.file} target="_blank">
{publication.name}
</Link>
)}
Expand Down

0 comments on commit 1f4958b

Please sign in to comment.