Fix search bar handling of Invidious channel URLs (#4568)

This commit is contained in:
absidue
2024-01-30 00:39:10 +00:00
committed by GitHub
parent d0e33fbc7b
commit 50bf28f94e
+3 -1
View File
@@ -580,7 +580,9 @@ const actions = {
urlType: 'channel',
channelId,
subPath,
url: url.toString()
// The original URL could be from Invidious.
// We need to make sure it starts with youtube.com, so that YouTube's resolve endpoint can recognise it
url: `https://www.youtube.com${url.pathname}`
}
}