Try Collabora path /cool/dist/cool.html (newer naming convention)

This commit is contained in:
Leon Bösche
2026-01-12 17:25:53 +01:00
parent d59a655f0f
commit d255f40a8c

View File

@@ -665,8 +665,8 @@ func collaboraProxyHandler(w http.ResponseWriter, r *http.Request, db *database.
wopiSrc := fmt.Sprintf("https://go.b0esche.cloud/wopi/files/%s?access_token=%s", fileID, accessToken)
// Build Collabora editor URL with WOPISrc in query string
// Try /lool/dist/loleaflet.html (standard Collabora path)
editorURL := fmt.Sprintf("%s/lool/dist/loleaflet.html?WOPISrc=%s&closebutton=1", collaboraURL, url.QueryEscape(wopiSrc))
// Collabora expects: /cool/dist/cool.html?WOPISrc=...
editorURL := fmt.Sprintf("%s/cool/dist/cool.html?WOPISrc=%s&closebutton=1", collaboraURL, url.QueryEscape(wopiSrc))
// Return HTML page that loads Collabora in an iframe
htmlContent := fmt.Sprintf(`<!DOCTYPE html>