Skip to content

[Bug]: Delete does not work from Recent and Search views with base path #65281

Closed

Description

@ShGKme

⚠️ 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

Deleting a file from Recent view or Search results ends with Delete file: failed.

It tries to delete https://company.tld/root-url/root-url/remote.php/dav/files/user/filename with duplicated /root-url.

Steps to reproduce

  1. Setup non-empty base path (root URL path)
  2. Open Recent view or Search results
  3. Try to delete a file from the actions menu
  4. Get Delete file: failed

Expected behavior

File is deleted.

Nextcloud Server version

36 (master)

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. self-assigned this
    on Oct 7, 2026
  2. added theissue type on Oct 7, 2026
  3. artlog commented on Oct 11, 2026

    @artlog

    This issue was fixed at client side.

    i see this comment in code fix :
    SEARCH request returns "/root-base/remote.php/dav/files/user/test.txt" instead of "/files/user/test.txt"

    This look like a regression at server side, this fix look like a workaround.

    My concern was about #58502 where i wonder if this symptom is not caused by same origin. But this is a 36 only issue.

  4. ShGKme commented on Oct 23, 2026

    @ShGKme
    ContributorAuthor

    This issue was fixed at client side.
    i see this comment in code fix :
    SEARCH request returns "/root-base/remote.php/dav/files/user/test.txt" instead of "/files/user/test.txt"

    It wasn't:

    • apps/files/src/services/WebDavSearch.ts has no fix, Delete issue is reproducible on the current master
    • apps/files/src/services/Recent.ts is only partially fixed by removing first /remote.php/dav subscring, but fails on non-empty baseURL (reproducible on the current master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions