App opens unrelated URLs
Steps to reproduce
- Open this link from Firefox on Android or an e-mail reader: https://seu.cleverreach.com/f/34891-164348/wss/269246-0630edf61ba28
- Notice the link being opened in the Nextcloud app, or at least have it been shown as an option.
Expected behaviour
- Nextcloud doesn't care about unrelated, third-party URLs to marketing services
Environment data
Android version: Android 11
Device model: Samsung Galaxy S10E, One UI 3.1
Stock or customized system: Stock, with Firefox for Android browser
Nextcloud app version: 3.18.1
Nextcloud server version: N/A
Environment data
These URLs are apparently used for subscribing/confirming subscriptions for newsletters managed with cleverreach.com.
Seems like the culprit is the intent filter for the pathPattern /f/..* in AndroidManifest,xml.
Confirmed. This will eventually solve itself in Android 12+, where the user must enable domains to be opened with Nextcloud explicitly, but we'll have to take a look for older versions meanwhile.
In my testing opening internal links on Android 12 is broken probably due to this new requirement. Is that correct?
BTW: is it even allowed to set <data android:host="*" /> on Android 12+? Seems to not be the case honestly (because it doesn#t work)...
In my testing opening internal links on Android 12 is broken probably due to this new requirement. Is that correct? BTW: is it even allowed to set
<data android:host="*" />on Android 12+? Seems to not be the case honestly (because it doesn#t work)...
Technically it should work until we bump the targetSDK to android 12, so I'm not sure what may be happening there.
Usually there was an astersisk shown here below supported webaddresses (aka "unterstützte Webadressen"). But as you can see here doesn't the asterik show up anymore after I updated my Samsung SGS10e to Android 12...

Does opening internal links work in an emulator with Android 12?
Does opening internal links work in an emulator with Android 12?
Not working in my tests, although it should :\ I will open another issue for that
https://github.com/nextcloud/android/issues/9386 gave a much more concise description. I have no clue, why that one is closed. This ticket here should have been merged with the above. Also, it seems this thread is just a blame on version 12. So what's the solution?!
#9386 gave a much more concise description. I have no clue, why that one is closed. This ticket here should have been merged with the above. Also, it seems this thread is just a blame on version 12. So what's the solution?!
No solution yet. This issue is still open; the android 12 bug is a related issue.
I'm having the same problem in Android 9. I'm unable to open affected URLs, as I am not even asked if I want to open them with the app. I also found no way to turn off this behavior.
I'm having the same problem in Android 9. I'm unable to open affected URLs, as I am not even asked if I want to open them with the app. I also found no way to turn off this behavior.
As a workaround, you can copy the URLs and then paste them in a browser. We still need to fix this at some point
Workaround does not work, when the browser attempts to open the URL I am still taken directly to nextcloud app with an invalid URL error. Android 12
Pasting the URL does not work, at least not in Firefox.
Removing nextcloud's "set as default" option in Android (12) does not guarantee matching links won't occasionally try to open in nextcloud.

Regardless of setting, Firefox always shows the "open in app" menu option for a matching link pattern.

I experimented with both Firefox and Chrome, but Chrome does not seem to erroneously open links in nextcloud. Can anyone confirm this problem is not actually a problem with Firefox?
For testing, almost every link on the slickdeals.com frontpage matches the link pattern.
I believe this could actually be a Firefox For Android issue/"feature". See here for fix: https://support.mozilla.org/en-US/kb/set-firefox-android-open-links-native-apps
I recommend marking this issue as resolved unless someone can reproduce the issue with a different browser.
I believe this could actually be a Firefox For Android issue/"feature". See here for fix: https://support.mozilla.org/en-US/kb/set-firefox-android-open-links-native-apps
I recommend marking this issue as resolved unless someone can reproduce the issue with a different browser.
I have this issue if I click on a Link in outlook email client. Gmail seems to work fine
I have this issue if I click on a Link in outlook email client. Gmail seems to work fine
What is your default web browser?
Its Chrome. Also changing the settings in outlook ' use default browser' didn't help
Same problem here with Android 13
Just started happening on android 13 here as well. Links from outlook just opening in nextcloud app.
Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.
Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.
Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.
Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.
OnePlus 8 Pro, IN2023_11_F13
See https://community.oneplus.com/wap/thread/1200191691983159301
Nextcloud Client 3.23.1
Thanks!
Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.
Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.
S22 ultra
Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.
Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.
S22 ultra here
For people using Firefox as their default browser, go into Firefox settings and uncheck "Open links in apps." I think this bug is Firefox being more aggressive about opening app links than Android. Fixed the issue for me. The downside is I have to click ... Open in App when I want to be in the app.
For people using Firefox as their default browser, go into Firefox settings and uncheck "Open links in apps." I think this bug is Firefox being more aggressive about opening links than Android. Fixed the issue for me. The downside is I have to click ... Open in App when I want to be in the app.
Use Vivaldi with the same issues, not just Firefox.
I can confirm, it is related to Firefox if it is used a default browser. Switching off in app resolved it.
Hey all, I am also facing the same issue with Nextcloud opening random links, definitely from Outlook. The setting for "Open links in apps." was already unchecked in Firefox. I tested by switching to Chrome as the default browser, still no change.
Device: Samsung Galaxy A52s OS: Android 13 Nextcloud version: latest (3.24.1) Firefox version: latest (110.0.1)
The problem with saying "Turn off open links in apps on Firefox" is that I want Firefox to open YouTube links in YouTube, and Spotify links in Spotify, etc. So switching off that option isn't really viable.
Somehow NextCloud's Android app is hijacking links - even when "Open supported links" is turned off.
- Android 13 (LineageOS 20)
- OnePlus 5T.
- NextCloud3.24.1
- Firefox 110.1.0
Same issue from galaxy s21 android 13 from outlook email links with fennec/firefox as default browser
Reported it to Mozilla just in case it's their issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1831438