Public links (OnlyOffice) broken when Collabora (Nextcloud Office) is active

Hi,

I have installed Collabora (Nextcloud Office) for one group and OnlyOffice for all other groups. For logged-in users, this setup works perfectly.

My problem is that public links to documents are no longer displayed in OnlyOffice, but are only offered for download.

As soon as I disable the “Nextcloud Office” (Collabora) app, the public links work again, and the documents are displayed correctly in OnlyOffice.

How can I change this so that public links use OnlyOffice, while Collabora remains active for my specific group?