google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.43k stars 598 forks source link

[WebView] Navigating back after a redirect with JS enabled doesn't work and simply reloads the redirect #1516

Closed tfcporciuncula closed 1 year ago

tfcporciuncula commented 1 year ago

Description When JS is enabled and we load a redirect URL, it becomes impossible to navigate back since tapping back simply reloads the redirect URL. The behavior is different in a regular webview and navigating back after loading a redirect URL works.

Steps to reproduce

Expected behavior Accompanist's webview behaves like a regular webview, where navigating back after a redirect works instead of reloading the redirect.

Additional context N/A

tfcporciuncula commented 1 year ago

Right after I opened this I saw https://github.com/google/accompanist/pull/1398 😅

Tested on the latest version and it's all fine there. I apologize for not checking before opening the issue 🦆

bentrengrove commented 1 year ago

I'm glad to hear it worked!