[Bug]: Internal links lose openfile
parameter value
#50155
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
30-feedback
bug
feature: files
needs info
Bug description
Ahoi,
when using the short file url for opening a file in a browser, the
openfile
query parameter gets lost on the internal redirects.So, I do start with the request
https://my.nextcloud.internal/f/1337?openfile=false
. The nextcloud server redirects to something likehttps://my.nextcloud.internal/apps/files/files/1337?dir=/Photos&openfile=true
. The file is opened.My intention however is to open the file in the location, hence the given
openfile=false
, which gets lost in the redirect.If I change the final url to
https://my.nextcloud.internal/apps/files/files/1337?dir=/Photos&openfile=false
, the desired state is displayed.The issue was already reported inside another, related bug: #45731 (comment)
While the bug is fixed, this issue remains.
Steps to reproduce
image/png
.https://[NEXTCLOUD_HOST]/f/[FILE_ID]?openfile=false
.Expected behavior
The browser view shows the parent directory and the chosen file is selected (details sidebar is open and file row is highlighted).
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
None
Web server
Apache (supported)
Database engine version
PostgreSQL
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?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: