Redirect to YouTube video and open app

Is there a trick to forcing a redirect to open a YouTube video link in the YouTube app on a mobile device?

Say I have a YouTube link:

And I want to create a redirect so that

automatically redirects to and opens in the YouTube app.

I’m trying the PHP code:

<?php header("Location:"); ?>

But that does not seem to work. It opens the mobile YouTube site with the video.

This is on Android using the mobile Chrome browser. I’d kind of like to solve this on iOS devices as well, but for now I’m just looking at Android devices - because that’s what I have.

If I create a link:

<a href="">Click Here</a>

and then click the link - the video opens in the YouTube app. But redirecting doesn’t appear to be possible. Am I missing something? Or is this just no possible?

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.