Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix viewing PDF files with public share links
In nextcloud#286, users have reported that PDF files are not viewable via public share links. The issue was introduced in c992b55 when attempting to encode parts of the URL for files that have special characters. This patch uses the URL Web API to deal with the parts of the URL in a more specific way. Also, the path and files searchParams are set based on `this.filename` and `this.basename` in the same way it is done in the View module when setting `davPath`. This has been tested on private and shared public links on files with and without special characters.
- Loading branch information