-
-
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] Closing a reddit comment thread redirects to homepage #2412
Comments
For example to open the Reddit comments: you click on "View Reddit comments" that link to "javascript:void(0)" I'm guessing it's a mistake someone made in the code and instead of "javascript:" it's the instance URL. |
The problem is that Invidious is serving:
Even though the line in the code seems correct: https://github.com/iv-org/invidious/blob/master/src/invidious/comments.cr#L474 Edit: found the issue: https://github.com/iv-org/invidious/blob/master/src/invidious/comments.cr#L539 |
A 10$ bounty has been added to this issue. Anyone opening a PR fixing this issue, will receive 10$ (in BTC) from the Invidious project. More details: #1898 |
Can confirm this is still an issue. Any progress on it? Also, instead of relying on invidious/assets/js/handlers.js Line 16 in e2fc642
data- attribute to specify whether the event should be prevented or bubbling should be stopped and then use that in the handlers file?
|
I don't think so.
Maybe? The JS hasn't really ever been changed since no one in the team is a JavaScript developer. |
Normally, I'd offer my help, but, sadly, at this time my day job doesn't give me a lot of spare time. I think it's a good practice to use |
@fristys yes, in the future I'd like to rewrite all links with |
Describe the bug
if you click the
[-]
button next to a reddit comment thread it will redirect you to homepage instead of closing.Steps to Reproduce
[-]
on any reddit comment threadScreenshots
The text was updated successfully, but these errors were encountered: