Fixed Instagram Reels not redirecting to Bibliogram #251
This commit is contained in:
parent
962eb89743
commit
027de4fc8c
|
@ -79,7 +79,7 @@ function redirect(url, type, initiator) {
|
||||||
if (url.pathname === "/" || reservedPaths.includes(url.pathname.split("/")[1]))
|
if (url.pathname === "/" || reservedPaths.includes(url.pathname.split("/")[1]))
|
||||||
return `${randomInstance}${url.pathname}${url.search}`;
|
return `${randomInstance}${url.pathname}${url.search}`;
|
||||||
if (url.pathname.startsWith("/reel") || url.pathname.startsWith("/tv"))
|
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
|
else
|
||||||
return `${randomInstance}/u${url.pathname}${url.search}`; // Likely a user profile, redirect to '/u/...'
|
return `${randomInstance}/u${url.pathname}${url.search}`; // Likely a user profile, redirect to '/u/...'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue