Fix DICOM viewer for public shares
- Detect public pages and use appropriate endpoint (publicdicomjson vs dicomjson)
- Add URL fallback for public page/token detection when DOM elements unavailable
- Scan clicked subfolder instead of share root for DICOM files
- Enable scanning files without proper DICOM MIME type (isOpenNoExtension)
- Use WebDAV public endpoint instead of download redirect for file access
Fixes https://github.com/ayselafsar/dicomviewer/issues/108
I tried your fix and now it is possible to open the dicomviewer within a public share but the dicomviewer cannot open the pictures.
/nextcloud/index.php/public.php/dav/files/8HrPcxsRzLfDNZ8/wetransfer_test-ct_2025-10-24_0908/Z160 HTTP/1.1" 404 7226
I tried your fix and now it is possible to open the dicomviewer within a public share but the dicomviewer cannot open the pictures.
It wasn't working with Nextcloud installations not using pretty URLs. I have modified my commit. Please retry.
Thank you very much, now the dicomviewer works with public shares.