diff --git a/go_cloud/api b/go_cloud/api index c3d0ef5..e3402d3 100755 Binary files a/go_cloud/api and b/go_cloud/api differ diff --git a/go_cloud/internal/http/routes.go b/go_cloud/internal/http/routes.go index c619fe4..e93e291 100644 --- a/go_cloud/internal/http/routes.go +++ b/go_cloud/internal/http/routes.go @@ -3011,7 +3011,8 @@ func publicFileShareHandler(w http.ResponseWriter, r *http.Request, db *database } 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://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)) + editorUrl := getCollaboraEditorURL("https://of.b0esche.cloud") + collaboraUrl := fmt.Sprintf("%s?WOPISrc=%s", editorUrl, url.QueryEscape(wopiSrc)) viewerSession["viewUrl"] = collaboraUrl }