about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/assets/javascripts/helpers/instagram.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/assets/javascripts/helpers/instagram.js b/src/assets/javascripts/helpers/instagram.js
index eedf1475..d151dc6b 100644
--- a/src/assets/javascripts/helpers/instagram.js
+++ b/src/assets/javascripts/helpers/instagram.js
@@ -97,7 +97,6 @@ function setProtocol(val) {
 }
 
 function redirect(url, type, initiator) {
-
   if (disable) return;
   if (
     initiator &&
@@ -116,6 +115,8 @@ 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}`;
   else
     return `${randomInstance}/u${url.pathname}${url.search}`; // Likely a user profile, redirect to '/u/...'
 }