Skip to content
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

yth does not work as expected (Safari on macOS) #61

Open
BreiteSeite opened this issue Apr 3, 2024 · 2 comments
Open

yth does not work as expected (Safari on macOS) #61

BreiteSeite opened this issue Apr 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@BreiteSeite
Copy link

BreiteSeite commented Apr 3, 2024

Describe the bug
YouTube handles loading the history page with a query not correctly (at least in Safari on macOS) since over a year (i also faced this with duckduckgo).

To Reproduce
!yth query -> (flashes) https://www.youtube.com/feed/history?query=query -> ignores query and redirects to https://www.youtube.com/feed/history

!yth -> https://www.youtube.com/feed/history?query= -> redirects to https://www.youtube.com

Expected behavior
As YouTube does not handle loading the page with a query parameter correctly, i propose removing the query altogether, so at least !yth behaves correctly instead of redirecting to the YouTube homepage.

If i load https://www.youtube.com/feed/history it reliably loads the Watch history page. So removing ?query= from the bang would increase reliability of this bang.

Additional context
Safari 17.4.1 @ macOS 14.4.1 (but as i said, i have this issue since "forever" (at least 1-2 years).

@BreiteSeite BreiteSeite added the bug Something isn't working label Apr 3, 2024
@nobodywasishere
Copy link
Member

Okay that's weird, looking into this, the bang works on mobile (Safari on iOS), but doesn't on desktop (Firefox on Linux or Safari on MacOS in your case).

Also for me on Firefox/Linux, https://www.youtube.com/feed/history?query= redirects to https://www.youtube.com/feed/history. I can test on some more machines soon though.

@BreiteSeite
Copy link
Author

Okay that's weird, looking into this, the bang works on mobile (Safari on iOS)

With a query i can confirm it loads the watch history and performs a search.
Without a query it redirects me to the homepage.

I assume this is some bug in YouTube (probably Angular) in handling that state correctly when initializing the frontend application. So i'm wondering if it ultimately makes sense to report this upstream to them (haven't looked into where this report would be best put yet though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants