diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php index f86bc3feba10b..87137d0665e0d 100644 --- a/apps/files_sharing/appinfo/routes.php +++ b/apps/files_sharing/appinfo/routes.php @@ -18,6 +18,16 @@ 'verb' => 'GET', 'root' => '', ], + [ + // The public page puts the file shown in its URL, which a reload + // asks the server for + 'name' => 'Share#showShare', + 'postfix' => 'fileid', + 'url' => '/s/{token}/{fileid}', + 'verb' => 'GET', + 'root' => '', + 'requirements' => ['fileid' => '\\d+'], + ], [ 'name' => 'Share#showAuthenticate', 'url' => '/s/{token}/authenticate/{redirect}',