-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Twitter t.co links don't load directly in new tab #628
Comments
Please provide actual links to reproduce your issue without having to guess. |
Additional details : I am to replicate this behaviour with any link in any tweet, but not if I copy the t.co link in a chat app then click on it, which results in expected behavior what I mentioned in description. If you open this tweet in twitter PWA or app, https://x.com/HeyPuter/status/1774247524653527041 Samsung M51, Android 13, webview version : 123.0.6312.40, Fulguris version 1.9.30 from f-droid. |
I looked into the code and found the root cause. In TabsManager.kt, when you long press on a link in another app and share to Fulguris, it is ACTION_SEND Intent and type is text/plain. So it does setAddressBarText and waits for user to hit enter key. Fix would be to check if 'clue' here is a network URL and load it in a new tab directly. Other webview based browser apps and regular browser apps behave as expected here for this "long press a link and share to browser" case. fun onNewIntent(intent: Intent?) = doOnceAfterInitialization { |
I see, I'm pretty sure it was intended to work like that so that you can review the URL before loading it. |
I reported this as other browser apps handle this long press share case, and in the same function 'onNewIntent' there's logic to automatically launch new tab and focus it (this will handle when user tap on link [instead of long press] in another app and choose Fulguris) If this is an expected behaviour for Fulguris, this bug and the related PR can be closed. |
Thanks, great work you did on that one. I'll need to take a closer look at that at some point. |
Description
Links posted in tweets become t.co short links. On tap of link and if fulguris is chosen, it fills the t.co link in current tab and expects user to hit enter key which it then loads in new tab.
This behaviour is not seen for other links for example from bluesky app where links are not shortened. For this case the new link intent is directly launched in new tab.
Environment
To reproduce
Expected behaviour
Browser should directly launch incoming links in a new tab and shouldn't wait for user input (enter key)
For comparison, repeat same steps with bluesky app or any other app.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: