Office Online no longer works with public links after upgrading to Nextcloud Hub 10 (31.0.4)

The Basics

  • Nextcloud Server version:
    • 31.0.4 (Nextcloud Hub 10)
  • Operating system and version:
    • Ubuntu 20.04
  • Web server and version:
    • Apache 2.4.41
  • Reverse proxy and version:
    • nginx 1.18.0
  • PHP version:
    • 8.3
  • Is this the first time you’ve seen this error?:
    • Yes
  • When did this problem seem to first start?:
    • After upgrading to version 31.0.4
  • Installation method:
    • Bare Metal
  • Are you using Cloudflare, mod_security, or similar?:
    • No

Summary of the issue you are facing:

After upgrading to Nextcloud Hub 10 (31.0.4), Office Online stopped working for public links.

Previously, public links to files (e.g., .docx) allowed unauthenticated users to open the file in the browser and view/edit it via Office Online. Now, when accessing the same public link, the user is redirected to the Nextcloud login page instead of being able to interact with the file.

This feature is critical for external collaboration and was working fine before the update.

Sorry i can not test it. Maybe there is a change in the settings at index.php/settings/admin/richdocuments. Post your settings.

can you show us your settings?

Where is this file located?

Maybe this?

See the path in my last post. Add it to your Nextcloud url in your browser.