nextcloud / ocs_api_viewer

3 stars 1 forks source link

Hardcoded path in iframe #6

Closed coyoteseattle closed 12 months ago

coyoteseattle commented 1 year ago

If the nextcloud install is in a subdirectory on the webserver, such as https://serverexample.com/nextcloud/, this fails because templates/iframe.php refers to all of its assets by absolute path as /apps/ocs_api_viewer/, which don't exist.
I corrected this on my install by modifying those URLs to instead be ../, but refrained from putting in a pull request, because I assume that there's a more correct way to do that which I'm not familiar with.

provokateurin commented 1 year ago

This bug has been reported by others as well. They had the app in a custom app directory, so the hardcoded path made it fail there too.