Skip to content

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented May 6, 2025

Requires #1204

Backport of #1164

Kept as draft until #1204 is merged and this one rebased on stable31, and until #1164 is reviewed and approved, but opening it beforehand to have it ready if it is approved without requiring changes.

@danxuliu
Copy link
Member Author

danxuliu commented May 6, 2025

/compile /

danxuliu added 3 commits May 6, 2025 10:27
Since Nextcloud 31 the public share pages for single files and folders
were unified, and public single file shares now show a file list with a
single file. Due to that it is no longer needed to explicitly inject the
PDF viewer in public shage pages or adjust the style, as the PDF viewer
will be loaded as needed by the Viewer component.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Since Nextcloud 31 the "hideDownload" HTML element no longer exists.
Between Nextcloud 31.0.0 and 31.0.4 (both included) "hide download"
behaved as "prevent download", so the PDF viewer could not show the file
at all in that case. In Nextcloud 31.0.5 the "hide download" behaviour
was restored, although the setting is now provided as a WebDAV property
(which is included in the file data), so the PDF viewer had to be
adjusted to that.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Even if the PDF viewer was able to show the file when the download is
hidden, before Nextcloud 31 the custom handling for public shares of a
single file opened it in Nextcloud Office instead. For consistency with
the previous behaviour now Nextcloud Office is used again in that case.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@szaimen szaimen force-pushed the backport/1164/stable31-remove-custom-handling-for-public-share-pages branch from 15efbdb to 23799e3 Compare May 6, 2025 08:27
@szaimen
Copy link
Collaborator

szaimen commented May 6, 2025

/compile amend /

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the backport/1164/stable31-remove-custom-handling-for-public-share-pages branch from 23799e3 to 2cd6f08 Compare May 6, 2025 08:29
Copy link
Collaborator

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works :)

@szaimen szaimen marked this pull request as ready for review May 6, 2025 08:36
@szaimen szaimen added this to the Nextcloud 31.0.5 milestone May 6, 2025
@szaimen szaimen enabled auto-merge May 6, 2025 08:36
@szaimen szaimen merged commit b499301 into stable31 May 6, 2025
41 checks passed
@danxuliu danxuliu deleted the backport/1164/stable31-remove-custom-handling-for-public-share-pages branch May 6, 2025 09:17
@blizzz blizzz mentioned this pull request May 6, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants