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] Images cannot be clicked anymore #3003
Comments
Not sure but it seems the JS is broken on https://search.inetol.net I tested with 2023.11.12+76b91a3ef (current master) and it works and I tested some instances from searx.space and version 2023.11.11 .. no issues. Did you customized CSS or JS? |
Can't replicate either on https://paulgo.io/ On searx.space, for search.inetol.net it says the instance is customized. |
I did not customize my css, i will check for errors on my instance tomorrow |
https://search.sapti.me does not use custom css and has the same error. |
I guess the initialization fails due to this exception, when the page is loaded. This line raises the error ..
But I do not understand why / and why it works in current master but not on some of the instances. |
According to the error message, it seems that the script is loaded before HTML, but I'm not sure, and this can't explain why it failed sometimes. |
The HTML loads the CSS and then JS .. but for some reasons the instances with this issue miss the button in the sidebar:
Aah .. here is the reason .. URL is only shown in HTTP POST request: searxng/searx/templates/simple/results.html Lines 56 to 58 in 76b91a3
When set to Line 89 in 76b91a3
there is no URL in the sidebar!
|
Hello, I encountered a similar issue but only on the mobile site. In my testing, the image click doens't work on:
However, it works on:
I did my testing on Android Cromite, with ad block and incognito mode disabled. |
no need to apologize .. its a complex thing .. don't ask how many mistakes I do every day ;) |
URL in sidedbar only exists in HTTP POST requests. On HTTP GET requests the selector ``#search_url button#copy_url`` results in a ``null`` type and a ``.style.display`` raises:: Uncaught TypeError: d.querySelector(...) is null As a result, the initialization of the event handler is no longer carried out. Closes: searxng#3003 Suggested-by: Markus Heiser <markus.heiser@darmarit.de>
Thank you for fixing it that quickly!👍 |
Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG
2023.11.12-6368f845c
How did you install SearXNG?
docker-compose
What happened?
When i click on any image from any search engine, there should appear a section showing the image in a bigger size with the options to open the website it is from and other option. This section is not appearing anymore.
How To Reproduce
Expected behavior
There should appear a section showing the image in a bigger size with the options to open the website it is from and other option.
Screenshots & Logs
@@
I marked the Section that is now missing red
Additional context
I tested it on my own private instance as well as on https://search.inetol.net . Both instances showed the same behaviour.
I tested it on Chromium and Firefox .
I tested it on Mobile (Android) and Desktop (Linux).
I tried clearing my Browser Cache.
It seems to be since 2023.11.11-7b1951aa9
The text was updated successfully, but these errors were encountered: