File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -904,8 +904,14 @@ export default Vue.extend({
904
904
} else {
905
905
// Some YouTube URLs don't have the urlEndpoint so we handle them here
906
906
907
- const path = part . navigationEndpoint . commandMetadata . webCommandMetadata . url
908
- return `https://www.youtube.com${ path } `
907
+ const { browseEndpoint, commandMetadata : { webCommandMetadata } } = part . navigationEndpoint
908
+ // channel handle
909
+ if ( webCommandMetadata . webPageType === 'WEB_PAGE_TYPE_CHANNEL' && part . text . startsWith ( '@' ) ) {
910
+ return `<a href="https://www.youtube.com/channel/${ browseEndpoint . browseId } ">${ part . text } </a>`
911
+ } else {
912
+ const path = webCommandMetadata . url
913
+ return `https://www.youtube.com${ path } `
914
+ }
909
915
}
910
916
} ,
911
917
You can’t perform that action at this time.
0 commit comments