cogentcore / core

A free and open source framework for building powerful, fast, elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the web with a single Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.75k stars 83 forks source link

Browser Back button works, but causes other issues #1279

Open gedw99 opened 3 weeks ago

gedw99 commented 3 weeks ago

Describe the bug

The browsers built in back button works but the state inside the wasm app gets very confused.

safari on Mac.

How to reproduce

https://www.cogentcore.org/core/widgets/other/html

then click to

https://www.cogentcore.org/core/widgets/other/pages

then click the rendered back button and everything works correctly.

then do all this again and click the built in browser back button and play around.

the URL is going backwards as it should, the the WASM GUI is not.

Example code

No response

Relevant output

Platform

same errors in:

macOS safari macOS chrome

kkoreilly commented 3 weeks ago

Thank you for reporting this! I will fix this soon.