Skip to content

[Bug]: External links lose openfile parameter value #65814

Open

Description

@helge17

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

While this bug has been fixed for internal links in issue #50155 , it is still present for external links.

Usecase: Share a video file without autoplaying it, as this may not work because of low bandwidth, but users should be able to download the file.

Tested with:

  • Nextcloud 35.0.2
  • Debian 13.7, apache 2.4.69, php 8.4
  • Link to a m4v video file

Steps to reproduce

Internal link (click while logged in) - works as expected

Open https://my.cloud.tld/index.php/f/1234567

Open https://my.cloud.tld/index.php/f/1234567?openfile=false

External link (click while not logged in) - not as expected

Open https://my.cloud.tld/index.php/s/AbCdE1234567890

Open https://my.cloud.tld/index.php/s/AbCdE1234567890?openfile=false

Expected behavior

openfile remains false, Filename is shown (as when you close the video player by clicking on the "X")

Nextcloud Server version

35

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

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

No response

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 theissue type on Oct 23, 2026
  2. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Oct 23, 2026
  3. changed the title [-][Bug]: External links loose openfile parameter value[/-] [+][Bug]: External links lose openfile parameter value[/+] on Oct 27, 2026
  4. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Oct 27, 2026
  5. salmart-dev commented on Oct 27, 2026

    @salmart-dev
    Contributor

    Hello @helge17,

    Thanks for informing us about the issue you faced! I was able to reproduce it as well. The fix should be quite straightforward and should be around respecting the existing value for openfile in apps/files_sharing/src/public/init.ts. I'll mark the issue as "Good first issue", which means it's a good fit if someone from the community would like to fix it, but they are new in the Nextcloud code base. Since the fix is rather simple, it is likely that a PR for this will likely come sooner that later.

  6. added
    good first issueSmall tasks with clear documentation about how and in which place you need to fix things in.
    on Oct 27, 2026
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

    1. to developAccepted and waiting to be taken care of35-feedbackbuggood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions