-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When "./js/pdfjs/web/images/" is resolved and pretty URLs are enabled the result is "{SERVER}/apps/files_pdfviewer/js/pdfjs/web/images/", which works as expected. However, if pretty URLs are not enabled the absolute path becomes "{SERVER}/index.php/apps/files_pdfviewer/js/pdfjs/web/images/" instead. As the images are static files they are not served by "index.php", so they can not be found and therefore are not rendered in the PDF. To solve that now the path is generated in PHP and provided through the template, similarly to how it is done, for example, for the path to the cmap files. Signed-off-by: Daniel Calviño Sánchez <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
- Loading branch information
1 parent
3e6e54b
commit 81fb907
Showing
4 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters