Update WOPI source URL for document viewing in publicFileShareHandler

This commit is contained in:
Leon Bösche
2026-01-25 19:22:26 +01:00
parent 0617d258f6
commit 3854234a3c
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -3010,7 +3010,7 @@ func publicFileShareHandler(w http.ResponseWriter, r *http.Request, db *database
viewerSession["viewUrl"] = viewPath
} else if strings.Contains(mimeType, "document") || strings.Contains(mimeType, "word") || strings.Contains(mimeType, "spreadsheet") || strings.Contains(mimeType, "presentation") {
// Use Collabora for document viewing
wopiSrc := fmt.Sprintf("%s://%s/public/wopi/share/%s", scheme, host, token)
wopiSrc := fmt.Sprintf("%s://go.b0esche.cloud/public/wopi/share/%s", scheme, token)
collaboraUrl := fmt.Sprintf("https://of.b0esche.cloud/lool/dist/mobile/cool.html?WOPISrc=%s", url.QueryEscape(wopiSrc))
viewerSession["viewUrl"] = collaboraUrl
}