Skip to content

Commit d3700ce

Browse files
Merge branch 'master' of github.com:CodeChefVIT/papers-codechef
2 parents 0beca84 + f8e2e17 commit d3700ce

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)