diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 97e062b4e..61b8cd516 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -315,7 +315,7 @@ const actions = { let urlType = 'unknown' const channelPattern = - /^\/(?:(?:channel|user|c)\/)?(?[^/]+)(?:\/(join|featured|videos|playlists|about|community|channels))?\/?$/ + /^\/(?:(?:channel|user|c)\/)?(?[^/]+)(?:\/(?join|featured|videos|playlists|about|community|channels))?\/?$/ const typePatterns = new Map([ ['playlist', /^(\/playlist\/?|\/embed(\/?videoseries)?)$/], @@ -420,7 +420,7 @@ const actions = { } let subPath = null - switch (url.pathname.split('/').filter(i => i)[2]) { + switch (match.groups.tab) { case 'playlists': subPath = 'playlists' break