-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
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 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
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;"
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
Aug 10, 2022? |
@rezad1393 It's been around for a while now, certainly longer than the existence of this issue, and quite a few instances take a long time to update, so that would have delayed the introduction of the bug. |
@unixfox while this example works on vid.puffyan.us, it doesn't work for e.g. https://vid.puffyan.us/dQw4w9WgXcQ. Instead of redirecting to https://vid.puffyan.us/watch?v=dQw4w9WgXcQ, it redirects to some random channel (https://vid.puffyan.us/channel/UCoG6BrhgmivrkcbEHcYtK4Q). Some other instances, including yewtu.be, redirect to the front page. |
It's a known problem, it's on the track list of issues to solve. |
Well, for now, you can copy the video ID, open a random video after being redirected to the front page and replace its video ID by yours to go to the video you want to see. It takes just seconds… |
Wasn't the consensus back in #2347 that youtu.be links should be handled by external redirect programs? Did the consensus change since then? Anyways, seems like there is logic pertaining to redirect youtu.be video ids within the 404 handler. Weird that its never triggered. invidious/src/invidious/routes/errors.cr Lines 37 to 41 in 3450896
Probably something related to this short-circuit here. invidious/src/invidious/routes/errors.cr Lines 13 to 16 in 3450896
|
This comment was marked as off-topic.
This comment was marked as off-topic.
these are also not correctly redirected? |
many of youtube redirections that work with piped, don't work with invidious. |
This is a separate issue, this is because we do not support this functionality called "featured". Could you please open a separate issue for that? |
done. |
This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked. |
Applicable on 2024.08.26-4782a67 (no modified source code link). Bugs don't fix themselves. |
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: