Public folder share: Direct opening of file link does not open slideshow

Nextcloud version (eg, 20.0.5): 23.0.2
Operating system and version (eg, Ubuntu 20.04): Apache Bullseye
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.51
PHP version (eg, 7.4): 8.0.16

(via Docker image 23.0.2-apache)

The issue you are facing:

I am sharing a folder containing videos using the Share link feature (read only) where one can click on a video in the list to open the slideshow view to play it.

The URL shown on the link to open the slide show is something like this: https://<server>/index.php/s/ABCefg123?dir=undefined&openfile=456789. (Other videos have different file ids.)

However I directly open this link in a browser, I still only get to the list of videos. I would expect to have the slideshow opened with the selected video playing.

How do I directly link to a video in a publicly shared folder? (I know I could share individual files directly via link, but in this case I would have to do that for every single file - I’d rather have only one folder share.)

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it (tested with Firefox 97 & Safari 13.5):

  1. share a folder with videos via read-only link
  2. play one video and get the video’s url
  3. directly open the url, e.g. by inserting it into the browser’s address bar

The output of your Nextcloud log in Admin > Logging:

n/a

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => '***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => '***',
  ),
  'trusted_proxies' => 
  array (
    0 => '***',
  ),
  'overwriteprotocol' => 'https',
  'datadirectory' => '/var/www/html/data',
  'overwrite.cli.url' => '***',
  'dbtype' => 'mysql',
  'version' => '23.0.2.1',
  'dbname' => '***',
  'dbhost' => '***',
  'dbport' => '',
  'dbtableprefix' => '***',
  'dbuser' => '**'*,
  'dbpassword' => '***',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'loglevel' => 0,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_from_address' => '**',
  'mail_domain' => '***',
  'mail_smtphost' => '***',
  'mail_smtpport' => '25',
  'maintenance' => false,
  'theme' => '',
  'mysql.utf8mb4' => true,
  'app_install_overwrite' => 
  array (
    0 => 'bruteforcesettings',
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

n/a

I think it is a problem in newer versions.

For me it works fine on older Nextcloud 21.07.

file:
https://nc.nl.tab.digital/s/aaPkzP2cqE4KTda?dir=undefined&openfile=87593956
https://nc.nl.tab.digital/s/aaPkzP2cqE4KTda?openfile=87593956
folder:
https://nc.nl.tab.digital/s/aaPkzP2cqE4KTda

It does not work on Nextcloud 22.2.5 for me.
It does not work on Nextcloud 23.0.2 for me.