Skip to content

Cannot open named channel links in NP (youtube.com/channelname) #6184

@Atemu

Description

@Atemu

Checklist

Steps to reproduce the bug

Send a VIEW intent with a URL like https://youtube.com/macaddress

When doing this

diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 6686291a0..056c70a5d 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -149,6 +149,8 @@
                 <data android:pathPrefix="/c/" />
                 <!-- playlist prefix -->
                 <data android:pathPrefix="/playlist" />
+                <!-- channel names -->
+                <data android:pathPattern="/..*" />
             </intent-filter>
             <intent-filter>
                 <action android:name="android.intent.action.VIEW" />

you can open channel URLs just fine since it's a redirect to a /channel/ URL which NP knows how to handle.

This does match more than just channels though (the account or settings pages for example) and I'm not sure what the impact of that on regular users would be in that regard as my system is set up in a way to not allow browsers to open apps automatically etc.

Actual behaviour

No NP in the list

Expected behavior

NP in the list

Screenshots/Screen recordings

Logs

Device info

Irrelevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    YouTubeService, https://www.youtube.com/bugIssue is related to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions