richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Nextcloud Office: Web browser's back arrow doesn't work, blank screen

Open pedropintosilva opened this issue 2 years ago • 2 comments

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:

  1. Open a spreadsheet
  2. Click the web browser's back button
  3. Sometimes nothing happens, just a blank screen
  4. 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: image

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

pedropintosilva avatar Sep 27 '23 09:09 pedropintosilva

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.

juliusknorr avatar Oct 09 '23 07:10 juliusknorr

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

juliusknorr avatar Oct 12 '23 11:10 juliusknorr