diff --git a/src/assets/javascripts/helpers/instagram.js b/src/assets/javascripts/helpers/instagram.js index 3277ffd..13c4d3d 100644 --- a/src/assets/javascripts/helpers/instagram.js +++ b/src/assets/javascripts/helpers/instagram.js @@ -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/...' }