Internal links don't work anymore in existing large collective
Describe the bug This bug is similar to #Internal links don't work anymore in existing collective #1490
But the most important answer there is not given: "How can I repair this without fixing manually every link"
We made a lot of docs in 2023 with a lot of links to documents in the file section and links to other documents in collectives. After looking into the docs in 2025 we found the links broken.
It would last several weeks to repair all links manually.
Is there a method to repair these links with a script or export, repair, import to shorten the time consuming manual repair?
To Reproduce Steps to reproduce the behavior:
If I click on a link to a pdf in files section, it says "Page not found"
The link text is
https://mydomain.com/Bedienungsanleitungen/Haus/Automation/Bedienungsanleitung_Siegenia_Drive_Genius2.2_h47.eleks013_de.pdf?fileId=3222840
If I go to files app, I can open this file without problems and I see the following link:
https://mydomain.com/apps/files/files/4455768?dir=/Bedienungsanleitungen/Haus/Automation&openfile=true
If the links point to another collective page (in the same collective or in another), the message is "collective not found: nameofcollective"
https://mydomain.com/apps/collectives/Keller/Werkstatt/Readme.md?fileId=3154259)
Here the name of the collective Antonxxx is missing.
If I open the collectives folder in files app, I can find and open collectives/Antonxxx/Keller/Werkstatt/Readme.md
A newly created working link would show:
https://mydomain.com/apps/collectives/Antonxxx/Ger%C3%A4te%20Haus%20A?fileId=3881716
I can reproduce this in every collective on this server.
Expected behavior The link should still work and the file should be opened, not mater if directly or with one step between.
Screenshots
Server details:
- Collectives app version: 2.16.1
- Nextcloud Nextcloud Hub 9 (30.0.8)
- PHPVersion: 8.3.11 Database: Art: mysql Version: 10.11.11 Größe: 613,1 MB
Client details:
- OS: Ubuntu 24.10
- Browser: Firefox 128.8.1esr (64-Bit)
- Device: Dell Latitude 7390
Logs
Nextcloud log (data/nextcloud.log)
There are no log entries for this problem.
As there are now answers for this bug, I will have some more questions for this problem.
If I would download the Readme.md and edit it, who would create and add the fileid, if I add a link manually? Is there a possibility to list all fileids in a collective?
The goal is to write a script which can repair all links. To do this manually would last several weeks.
@zeitisen we just published a new Collectives 3.0.0-dev2 beta release that again touches link handling. Could you try to see whether at least links to other collectives are fixed for you with this release?
Closing due to lack of information.