fedimbed: fix relative redirects

This commit is contained in:
Cynthia Foxwell 2022-12-05 20:05:13 -07:00
parent 8e61b5da82
commit a0a218ce67
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ async function processUrl(msg, url) {
},
redirect: "manual",
}).then((res) => res.headers.get("location"));
if (url.startsWith("/")) {
url = urlObj.origin + url;
}
}
if (PATH_REGEX.pleroma2.test(urlObj.pathname)) {