Skip to content

Commit

Permalink
fix: pdf loading through https not http
Browse files Browse the repository at this point in the history
  • Loading branch information
leober-ramos33 committed Oct 22, 2023
1 parent 7d575a4 commit bb63bd9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/article/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export default async function Page({ searchParams }) {
.replace(/ /g, " ")
.replace(/\n/g, "")
.trim(),
pdf: entry.find("link[title='pdf']").attr("href").trim(),
pdf: entry
.find("link[title='pdf']")
.attr("href")
.trim()
.replace("http", "https"),
};

return (
Expand Down

0 comments on commit bb63bd9

Please sign in to comment.