Fulguris icon indicating copy to clipboard operation
Fulguris copied to clipboard

URL-Redirects are part of history

Open riedel opened this issue 2 years ago • 19 comments

Description

If you use the non-javascript version of duckduckgo or any other site that uses URL redirects one needs to press back in a very quick sequence, making it very difficult to return to the linking page

Environment

  • Device: Redmi Note 10 Pro
  • OS: Android 12; M2101K6G Build/SQ3A.220705.003
  • Version: 1.8.12

To reproduce

Steps to reproduce the behaviour:

  1. Go to https://html.duckduckgo.com/html/?q=test
  2. Click on first link
  3. Press back/use guesture
  4. The page just reloads

Expected behaviour

One should return to https://html.duckduckgo.com/html/?q=test

Additional context

Tested the expected behaviour on other browsers. While it might be a valid interpretation of history back, it makes using sites with redirect URLs a real annoyance, which I would see it as a bug (at least in terms of usability)

riedel avatar Nov 12 '22 08:11 riedel

Yeah, that's a pain and ought to be solved. Quick search yield that: https://stackoverflow.com/questions/7011207/android-webview-navigating-back-on-url-redirection

I'll try to look into it between Christmas and new year. Did you find an open source browser that dealt with it properly?

Slion avatar Dec 13 '22 10:12 Slion

https://github.com/RocketScientists/Rocket

From @Slion: This one is based on FireFox though so probably not that useful to us since we use WebView.

Kita2345 avatar Jan 03 '23 03:01 Kita2345

The Einkbro browser solves this problem, can developers refer to it? https://github.com/plateaukao/einkbro

chwt163 avatar Apr 11 '24 02:04 chwt163

https://gitlab.com/TipzTeam/viola

Pada Kam, 11 Apr 2024 09.03, chwt @.***> menulis:

The Einkbro browser solves this problem, can developers refer to it? https://github.com/plateaukao/einkbro

— Reply to this email directly, view it on GitHub https://github.com/Slion/Fulguris/issues/414#issuecomment-2048801206, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU573WR2NBG4D7QSK3H43IDY4XVNRAVCNFSM6AAAAAAR6HDL6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBYHAYDCMRQGY . You are receiving this because you commented.Message ID: @.***>

Kita2345 avatar Apr 11 '24 17:04 Kita2345

I can't reproduce that issue right now on HONOR Magic V2 Android 13. Is that still an issue for you? Please provide use case, WebView version, Fulguris version, Android version, device make and model.

Slion avatar Apr 13 '24 06:04 Slion

provide use case: https://www.ithome.com/ https://www.mydrivers.com/ Open a web page casually, and then enter the URL above in the address bar and enter, at this time, click the back button, and the Fulguris will not go back, but refresh.

Fulguris:1.9.30 WebView Version: 118.0.5993.80(599308001) Android Version: 10 API29 Device: HONOR BKL-AL20

chwt163 avatar Apr 14 '24 03:04 chwt163

Screenshot_20240414_084352

WebView v123.0.6312.100 Tried the above on Android 13 after disabling open URL in new tab and it works just fine AFAICT. I ought to try on some other devices.

Slion avatar Apr 14 '24 06:04 Slion

Works fine on WebView v117.0.5938.153 Android 8 Samsung Galaxy S7 Edge. Screenshot_20240414-091036_Fulguris

Try update your WebView if you can and see if that helps.

Slion avatar Apr 14 '24 07:04 Slion

Screenshot_20240414_153238_net slions fulguris full fdroid_edit_685139332212634

Clicking on this link will take you to the mobile version of the website, and the browser's back button will not work and will be refreshed. Or you try this: https://www.ithome.com/ This URL will automatically jump to it, without clicking on any links, and then it can't go back. Going back can only be achieved by quickly double-clicking the back button.

chwt163 avatar Apr 14 '24 07:04 chwt163

I know know what you mean, I just can't reproduce it on both phones I tried it on. So it's possibly a bug in the WebView version you are using.

Can you make a screenshot of your page history like I did? Go to Menu / Web page / Page history.

Slion avatar Apr 14 '24 07:04 Slion

For me it works now. Regarding the test case above: for me entering a URL in the bar opens a new tab. So going back does the animation but rather does nothing because it is the first entry in the history. This is imho confusing from a UX perspective due to the animation and the endless loop. But the problem before as I said is gone for me (not getting past some entries in the history)

riedel avatar Apr 14 '24 07:04 riedel

@riedel You can disable open URL in new tab to help you test that. Menu / Settings / General / URL in new tab.

Slion avatar Apr 14 '24 08:04 Slion

So looking at the information on that stack overflow link above it sounds like it could be a side effect of your content blocker configuration. If you are having this issue, disable the content blocker from the settings and try again.

Slion avatar Apr 14 '24 08:04 Slion

Ok now I can reproduce on Android 14 with ithome.com. Web view 124.0.6367.42 with new URLs in same tab.

Also with content blocking disabled.

Edit: Page History gives

  • m.ithome.com
  • www.ithome.com
  • example.com

(Going back loops the recent two)

riedel avatar Apr 14 '24 08:04 riedel

Screenshot_20240414_170844_net slions fulguris full fdroid Screenshot_20240414_170751_net slions fulguris full fdroid

chwt163 avatar Apr 14 '24 09:04 chwt163

That's so weird. Why can't I reproduce it then? Can you post a screenshot of your page history? Did you change any settings? Can you try with the default settings. Maybe install another variant of Fulguris for that. Google Play, F-Droid or Download variant.

Edit: cross post, thanks

Slion avatar Apr 14 '24 09:04 Slion

I'm using the F-Droid version, and I seem to have found out what the problem is: settings-privacy-request 'Do Not Track' turns on this option and it reproduces

chwt163 avatar Apr 14 '24 09:04 chwt163

I can reproduce the issue when 'Do Not Track' is enabled. This option is actually causing quite a few issues. We should really look into that at some point and fix it or just remove it.

Slion avatar Apr 14 '24 12:04 Slion

I can confirm, but I initially could not reproduce as also other options like remove identifying headers seem to trigger the same problem.

riedel avatar Apr 14 '24 13:04 riedel