-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Files internal link GET param to avoid opening the file #30645
Conversation
if the default behavior is to open the file, how about calling it "openfile=0" to disable it, and the default would be "openfile=1" ? or is that less intuitive ? |
15319ed
to
e0e976f
Compare
@PVince81 Yes, makes sense. Done and pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you both for the review. What do you think about backporting that? |
As long as this doesn't change existing functionality up to you :) |
Agreed! |
…direct Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
e0e976f
to
b67b4b1
Compare
/backport to stable23 |
/backport to stable22 |
/backport to stable21 |
CI failure is not related. |
This adds a
openfile
GET param to internal links (/f/FILE_ID
) to avoid setting theopenfile
param in the redirect response.This can be useful when the intention is to show the file's activity for example.
It is already possible to get there with links like
https://my.nc.org/index.php/apps/files/?dir=/&scrollto=name.txt
but it requires to know the file path.