Skip to content

Commit 0f1f6d8

Browse files
preview card test
1 parent 88928da commit 0f1f6d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/PreviewCard.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { capsule } from "@/util/utils";
88
import Link from "next/link";
99

1010
const PreviewCard = ({ paper }: { paper: Paper }) => {
11+
if (paper.finalUrl.startsWith("http://")) {
12+
paper.finalUrl = paper.finalUrl.replace("http://", "https://");
13+
}
1114
return (
1215
<div
1316
key={paper._id}

0 commit comments

Comments
 (0)