about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAustin Huang <im@austinhuang.me>2020-10-23 19:34:53 -0400
committerGitHub <noreply@github.com>2020-10-23 19:34:53 -0400
commit9b0f86ce91c99a62205d73d9ff675beae6545383 (patch)
tree0cfe538671c42ae7f6b28dcb1e917a550d047894
parentCreate messages.json (diff)
downloadlibredirect-9b0f86ce91c99a62205d73d9ff675beae6545383.zip
Update background.js
-rw-r--r--background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/background.js b/background.js
index 3f5145cd..e1405acd 100644
--- a/background.js
+++ b/background.js
@@ -307,7 +307,7 @@ function redirectYouTube(url, initiator, type) {
   url.searchParams.append("autoplay", invidiousAutoplay ? 1 : 0);
 
   return `${invidiousInstance || getRandomInstance(invidiousInstances)}${
-    url.pathname
+    url.pathname.replace("/shorts","")
   }${url.search}`;
 }