Preview card for YouTube short urls links to wrong page
Steps to reproduce the problem
- Post a YouTube short URL like https://youtu.be/C_b6bptI844
- Open the link in the post, video shows fine
- Open the link via the preview card, YouTube loads the page of an "undefined" YouTube channel or showing a blank page: https://www.youtube.com/undefined
Happens on Mastodon 4.2.10
Expected behaviour
the preview card should keep the original name the same.
Actual behaviour
a wrong video page is shown
Detailed description
No response
Mastodon instance
ruhr.social
Mastodon version
4.2.10
Browser name and version
chrome Android Version 127.0.6533.103 and Firefox Android 129.0b9 (Build #2016034799),
Operating system
Android 14
Technical details
I tested it with short urls for YouTube shorts and for regular videos, it happens with both of them
Hi! I have the same issue with one of my Mastodon instances. Didn't have the time to further dig into this issue, but when I have, I'll contribute.
Great. Let me know how can I assist.
Likely a duplicate of #31308, youtube changed something and it broke link unfurling
Thanks Emily! It certainly looks that way. Hope you can get in contact with one of them soon
Same issue here, YouTube card not working and showing as https://www.youtube.com/undefined, even when using the full video url and not the sharing short one. Running Mastodon 4.2.7