tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
remove extra uri encoding
awarm.space
9 months ago
4c9811db
9fdc8ac0
+1
-1
1 changed file
expand all
collapse all
unified
split
src
utils
getMicroLinkOgImage.ts
+1
-1
src/utils/getMicroLinkOgImage.ts
···
5
5
const headersList = await headers();
6
6
const hostname = headersList.get("x-forwarded-host");
7
7
let protocol = headersList.get("x-forwarded-proto");
8
8
-
let full_path = encodeURIComponent(`${protocol}://${hostname}${path}`);
8
8
+
let full_path = `${protocol}://${hostname}${path}`;
9
9
let response = await fetch(
10
10
`https://pro.microlink.io/?url=${full_path}&screenshot=true&viewport.width=1400&viewport.height=733&meta=false&embed=screenshot.url&force=true`,
11
11
{