Skip to content

Commit

Permalink
Change Preview Image Opening (#41)
Browse files Browse the repository at this point in the history
* Changed the LatestPreviewImage.tsx so that when you click on the preview image, it opens up a new page instead of opening the link on the current page.

* Add rel="noopener" for security!
  • Loading branch information
exu160 authored Nov 6, 2023
1 parent 6867670 commit 378651c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/LatestPreviewImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const LatestPreviewImage = (props: { imageClass: any; imageIndex: number }) => {
<Link
passHref
href={(data && data.link) || "https://issuu.com/stuyspectator"}
target="_blank"
rel="noopener"
>
<img
alt={`The ${
Expand Down

0 comments on commit 378651c

Please sign in to comment.