Skip to content

[Bug]: F-31 The details sidebar is not restored after a reload, and links with index.php lose the file #65087

Open

Description

@nicolassp

⚠️ This issue respects the following points: ⚠️

  • This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
  • This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
  • I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
  • I agree to follow Nextcloud's Code of Conduct.
  • I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.

Bug description

F-31 · The details sidebar is not restored after a reload, and links with index.php lose the file

Severity Low (UI: shared or reloaded links do not open the file details)
Component apps/files/src/sidebar/providers/filesStore.ts, apps/files/src/router/router.ts
Affects 35.0.1
Verified In the browser, and with unit tests that fail on 35.0.1

Steps to reproduce

Steps to reproduce

  1. Open a folder, choose Details in the menu of a file.
  2. The URL becomes /apps/files/?dir=/folder&opendetails=true: without the view and without the file id.
  3. Reload: the sidebar does not open again.

And, with pretty URLs enabled: open /index.php/apps/files/files/123?dir=/folder&opendetails=true
(older bookmarks, links from before pretty URLs were enabled). The router's base is /apps/files,
so the view and the file id are not recognized and nothing opens.

Fix

  • When the sidebar opens, the view and the file id of the shown node are written into the URL
    together with opendetails.
  • The router keeps /index.php/apps/files as its base when the page was opened with it. This is what
    the comment above the base option already describes ("if index.php is in the url … keep using it").

Expected behavior

Fix

  • When the sidebar opens, the view and the file id of the shown node are written into the URL
    together with opendetails.
  • The router keeps /index.php/apps/files as its base when the page was opened with it. This is what
    the comment above the base option already describes ("if index.php is in the url … keep using it").

Nextcloud Server version

35

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Oct 3, 2026
  2. added theissue type on Oct 3, 2026
  3. Dennis-Otto commented on Oct 25, 2026

    @Dennis-Otto

    The same link pattern fails harder on master: on Nextcloud 36.0.0 dev the folder view itself does not open.

    Setup: latest-master.tar.bz2 of 2026-10-23 in the official Docker image 35.0.2 (Apache, pretty URLs on), SQLite, local storage.

    Steps:

    1. Log in.
    2. Open /index.php/apps/files/files?dir=/.

    Expected: the file list of /, as on 33, 34 and 35.0.2 with the same URL and setup.
    Actual: Files shows its navigation but no file list, and the address becomes /apps/files/index.php/apps/files/files?dir=/. /apps/files/files?dir=%2F shows the list.

    Observed in the end-to-end tests of the paperless-sync app (Playwright, headless Chrome): the wait for [data-cy-files-list-row-name="receipt.pdf"] timed out after 60 s, see the job "coming Nextcloud" of https://github.com/Dennis-Otto/paperless-sync/actions/runs/40119556519. It is the same with the app's script blocked. The tests now open Files at OC.generateUrl('/apps/files'): Dennis-Otto/paperless-sync#249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap35-feedbackbug

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions