dshoreman / nextshot

A simple tool for taking screenshots on Linux and sharing via Nextcloud
GNU General Public License v2.0
41 stars 3 forks source link

Support Nextcloud instances that have Pretty URLs disabled #68

Closed dshoreman closed 4 years ago

dshoreman commented 4 years ago

Adds a new pretty_urls config option to fix an issue with broken upload and share links.

Servers that don't support (or have disabled) pretty URLs require /index.php to be inserted in links after the server domain, but Nextshot wasn't adding them. You couldn't just add it to the server option in config because that would break the API calls.

When pretty_urls is set to false in config (it's true by default) this will now add /index.php where appropriate.

Fixes #67