diff --git a/go_cloud/internal/http/wopi_handlers.go b/go_cloud/internal/http/wopi_handlers.go index 930cd58..92ad87c 100644 --- a/go_cloud/internal/http/wopi_handlers.go +++ b/go_cloud/internal/http/wopi_handlers.go @@ -5,7 +5,6 @@ import ( "fmt" "io" "net/http" - "net/url" "strings" "sync" "time" @@ -664,14 +663,13 @@ func collaboraProxyHandler(w http.ResponseWriter, r *http.Request, db *database. // Build WOPISrc URL wopiSrc := fmt.Sprintf("https://go.b0esche.cloud/wopi/files/%s?access_token=%s", fileID, accessToken) - // Build Collabora editor URL with WOPISrc in query string - collaboraEditorURL := fmt.Sprintf("%s/loleaflet/dist/loleaflet.html?WOPISrc=%s", collaboraURL, url.QueryEscape(wopiSrc)) - // Return HTML page with auto-submitting form + // Collabora requires: POST to /loleaflet/dist/loleaflet.html with WOPISrc in request body htmlContent := fmt.Sprintf(` Loading Document... +