Nextcloud Office: Web browser's back arrow doesn't work, blank screen
Describe the bug
reported by Julie
When I click on the web browser's arrow to go back one step (i.e. out of the spreadsheet and back to the original folder I entered) it doesn't always respond and I have to repeat the action another 1 or 2 times before I can "escape" the spreadsheet.
To Reproduce Steps to reproduce the behavior:
- Open a spreadsheet
- Click the web browser's back button
- Sometimes nothing happens, just a blank screen
- I need to click multiple times (URL in the address bar changes but nothing happens) until I'm back to NC BUT not the place I was expecting to: Dashboard
Additional notes from Pedro: it seems the document is correctly closed, but the user gets stuck in a blank screen:
Expected behavior Click arrow to go back should get me back to the previous screen that I was in before opening the spreadsheet.
Screenshots If applicable, add screenshots to help explain your problem.
Client details:
- Firefox, desktop
Server details
- Nextcloud
- This Nextcloud is on version 27.0.2 Enterprise
- OC.getCapabilities().richdocuments.version
- 10:18:03.123 "8.2.0"
- Collabora Online
- COOLWSD version: 23.05.4.1snapshot (git hash:Â d39d2cd (E))
- LOKit version: Collabora Office 23.05.4.20230917 (git hash:Â 34a9524)
- Served by: Debian GNU/Linux 12 (bookworm)
- Server ID: 5da3ee77
Needs some double checking if this has already been fixed with the files2vue migration for 28 as the browser history handling has changed there iirc.
I'm unsure what has changed the behaviour there but the back operation only happens in the iframe, no close post message is emitted.
Not sure if we can listen for https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event on the iframe to handle it accordingly