Different share link when created in gallery view or normal view

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 13.0.4
Operating system and version (eg, Ubuntu 17.04): Ubuntu 16.04.4
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.18 (Ubuntu)
PHP version (eg, 7.1): PHP 7.0.30-0ubuntu0.16.04.1

The issue you are facing:

When generating share links from the normal file view, the links look like this:


When viewing the same image in gallery mode, creating a share using the icons in the upper right:


Produce a share link that looks like this:


This link then causes a mimetype error when being served (prompts to download the file instead of showing the share page like the first link).

Is this expected behavior?

I’m seeing the same with NC15, did you file an issue on github for this? Thanks.

This one is similar: https://github.com/nextcloud/gallery/issues/268