Nextcloud Office documents open in Safari but fail with “Page not found” in iOS app directEditing route
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Summary
When opening Office documents from the Nextcloud iOS app, the app shows a Nextcloud “Page not found” page instead of loading Nextcloud Office / Collabora. The same documents open and edit correctly in Safari on the same iPhone, and also in desktop browsers.
The server-side Collabora / richdocuments setup appears to be working. The iOS app successfully creates a richdocuments editing session via OCS, but the follow-up /apps/files/directEditing/... request appears to be made without an authenticated web session and returns 404.
Steps to reproduce
- Open the Nextcloud iOS app.
- Log into a Nextcloud account.
- Browse to an Office document, e.g.
.odtor.docx. - Tap the document to open it.
- The app shows a Nextcloud page saying: “Page not found. The page could not be found on the server or you may not be allowed to view it.”
- If I tap the in-page “Back to Nextcloud” link, it goes to the login page, even though the iOS app itself is logged in and can browse files.
Expected behaviour
The document should open in Nextcloud Office / Collabora inside the iOS app, or otherwise use an authenticated session to load the editor.
Actual behaviour
The document does not open. The app shows a Nextcloud “Page not found” page.
Important observations
-
Opening the same document in Safari on the same iPhone works correctly.
-
Opening/editing Office documents in a desktop browser works correctly.
-
The Nextcloud iOS app can browse files normally.
-
Clearing the iOS app cache did not fix the issue.
-
Removing and re-adding the account in the iOS app did not fix the issue.
-
Reinstalling/re-enabling
richdocumentsdid not fix the issue. -
Updating
overwrite.cli.url,overwritehost, andoverwriteprotocoldid not fix the issue. -
occ richdocuments:activate-configreports successful Collabora discovery and capabilities checks.
Logs
When tapping an Office file in the iOS app, the access log shows the iOS app is authenticated for WebDAV/OCS and successfully creates a Richdocuments session:
[username] [17/Jun/2026:14:46:59 +0100] "POST /ocs/v2.php/apps/richdocuments/api/v1/document HTTP/1.1" 200 891 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/33.0.9"
Immediately afterwards, the generated direct editing URL returns 404 and appears unauthenticated in the logs:
- [17/Jun/2026:14:46:59 +0100] "GET /apps/files/directEditing/[redacted-token] HTTP/1.1" 404 46262 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/33.0.9"
This matches the behaviour in the app: after the “Page not found” page appears, tapping the in-page “Back to Nextcloud” link takes me to the login page.
Reasoning or why should it be changed/implemented?
This appears to be a bug in the iOS app’s hand-off from the native file browser to the embedded web editor / direct editing route.
The native iOS app appears to be authenticated correctly for normal file browsing and for creating the Richdocuments session via OCS. However, the subsequent request to /apps/files/directEditing/[token] appears to be made without an authenticated Nextcloud web session. As a result, the server returns a 404 / “Page not found” page instead of opening the editor.
Since the same document opens correctly in Safari on the same iPhone, and also in desktop browsers, the Collabora / richdocuments server-side setup appears to be functional. The issue seems specific to the Nextcloud iOS app’s embedded web view or direct-editing session handling.
Environment data
iOS version: iOS 26.5
Nextcloud iOS app version: 33.0.9.1
Server operating system: TrueNAS SCALE / Docker container deployment
Web server: Apache 2.4.67 inside container
Database: Unknown / default database provided by the Nextcloud app deployment
PHP version: 8.4.22
Nextcloud version: 34.0.0
Nextcloud Office / richdocuments version: 11.0.0
Collabora CODE version: 26.04.1.4
Reverse proxy / access: Public HTTPS URL behind reverse proxy / Cloudflare Tunnel
Additional note: iOS Safari on the same device can open and edit the same document successfully.
I just updated to version 34, so I expect this issue is related. I never experienced with versions 33 or earlier.
I also have 34.0.1 running and web client works but the mobile app on iOS which shows User-Agent 33.0.10 does not work. It shows at first the mentioned login flow and after few tries it just shows banner on the file listing view that says "Error. Unauthorised".
I am experiencing the exact same issue on my self-hosted environment since upgrading to Nextcloud 34.
- Nextcloud Server: 34.0.1 (Docker container
nextcloud:latest) - Nextcloud iOS App: 33.0.10
- Nextcloud Office (richdocuments): 11.0.0
- Collabora/CODE Server: Standalone container (collabora/code)
- Reverse Proxy: Apache inside Docker behind Cloudflare Tunnel
Symptoms
Opening office documents (.docx, .xlsx) works flawlessly via any desktop browser (Chrome/Firefox/Safari) and even via mobile Chrome on iOS. However, when clicking on any document inside the native Nextcloud iOS app, it immediately throws the "Page not found" / "The page could not be found on the server" error.
Server logs
At the exact moment of opening the document in the iOS app, the API successfully requests the document token but the subsequent directEditing route fails with a 404:
172.18.0.3 - admin - "POST /ocs/v2.php/apps/richdocuments/api/v1/document HTTP/1.1" 200 953
172.18.0.3 - - "GET /index.php/apps/files/directEditing/BtSAHwjtkgdZMqb62TsRy9eTyw6LH4mRAaYLDXQ8N2GJdpbb3q5M3HmySgej2Jwc HTTP/1.1" 404 29897
re-try with the 33.1.1
You mean downgrading? I think this is not an option coming from 34.x.
The most recent version 33.1.1 of the iOS App (updated today) doesn’t work.
You mean downgrading? I think this is not an option coming from 34.x.
The most recent version 33.1.1 of the iOS App (updated today) doesn’t work.
Something on the server isn't accepting the DL. Sorry, but it's not an iOS issue.
I can confirm the page not found error is gone for me. I've upgraded multiple components in the last week and can't say exactly what resolved the issue. However, with the following, it is now working:
Nextcloud Server: 34.0.1 Nextcloud Office (Collabora): 11.0.1 Nextcloud for iOS: 33.1.1.2
Thanks.
docker exec -it nextcloud-app-1 su -s /bin/sh www-data -c "php /var/www/html/occ app:update --all" whiteboard new version available: 1.5.9 whiteboard updated spreed new version available: 24.0.2 spreed updated news new version available: 28.6.0 news updated tasks new version available: 0.18.1 tasks updated contacts new version available: 8.7.4 contacts updated groupfolders new version available: 22.0.3 groupfolders updated calendar new version available: 6.5.1 calendar updated richdocuments new version available: 11.0.1 richdocuments updated
It must have been richdocuments. With 11.0.1 it works for me now. :-)
Thanks for the tip!