New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Redirect from short youtu.be URLs does not work #3933
Comments
|
Closing as it works fine on instances that are officially published on https://instances.invidious.io |
Not all of them, then: it works with yewtu.be (last updated on 11th June), but not with https://yt.artemislena.eu/, nor https://invidious.projectsegfau.lt/ (both last updated to 21st June, and both are instances on this list). Maybe you don’t want to hear about it anymore since it (still?) works on the instances you tested with (and it’s good to hear, but how long will it last for them?), but I wonder if there was a commit that break this redirect (since it seems to affect only instances updated circa after mid-June), and I’m not a programmer. Luckily, it’s a minor (but annoying) bug, but I guess that if other people notice it on their side, they will report it too. |
|
Reopening as I can reproduce the issue on the test instance: https://test.invidious.io/yWsS5UJf8yU I did close the issue before because it was working on an up to date instance: https://vid.puffyan.us/yWsS5UJf8yU |
|
Yes, there is indeed such a problem with some instances. |
No I don't think it's that. It used to work in the past and invidious never required any special configuration. It could be that youtube is doing some A/B testing and an endpoint that we are using for detecting short URLs doesn't work anymore. |
|
I have this bug too. I use this invidious configuration on my instance https://invidious.ethibox.fr. The format https://invidious.ethibox.fr/watch?v=fmsoym8I-3o works correctly. But when I try to access a YouTube video with the https://invidious.ethibox.fr/fmsoym8I-3o format, it doen't work, it redirects to the homepage. |
About issue : iv-org#3933 I think it should be reviewed here: https://github.com/rnek0/invidious/blob/507bed6313b49564e53b69a5c9b4d072d1e05e4b/assets/js/player.js#L40 short_url will be used here : https://github.com/rnek0/invidious/blob/507bed6313b49564e53b69a5c9b4d072d1e05e4b/assets/js/player.js#L119 since get embedCode() a little further down returns a correct code by calling the same function on line 127 I would suggest changing this: "var short_url = location.origin + '/' + video_data.id + embed_url.search;" to this "var short_url = location.origin + '/watch?v=' + video_data.id + embed_url.search;"
Describe the bug
youtu.be/×××××short URLs are usually converted as[Invidious]/×××××and they used to be redirected to the full URLs[Invidious]/watch?v=×××××.As of today (but I don’t know since when exactly), it does not work anymore and such shortened URLs lead to the homepage of the instance instead.
Steps to Reproduce
Tested on FDN’s Invidious instance (updated each Sunday):
Additional context
The text was updated successfully, but these errors were encountered: