Fixed Instagram Reels not redirecting to Bibliogram #251

This commit is contained in:
ManeraKai 2022-05-08 19:51:05 +03:00
parent 962eb89743
commit 027de4fc8c
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ function redirect(url, type, initiator) {
if (url.pathname === "/" || reservedPaths.includes(url.pathname.split("/")[1]))
return `${randomInstance}${url.pathname}${url.search}`;
if (url.pathname.startsWith("/reel") || url.pathname.startsWith("/tv"))
return `${randomInstance}/p${url.pathname}${url.search}`;
return `${randomInstance}/p${url.pathname.replace('/reel', '')}${url.search}`;
else
return `${randomInstance}/u${url.pathname}${url.search}`; // Likely a user profile, redirect to '/u/...'
}