Fix Collabora path from /loleaflet to /lool (correct endpoint)
This commit is contained in:
@@ -665,7 +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
|
||||
editorURL := fmt.Sprintf("%s/loleaflet/dist/loleaflet.html?WOPISrc=%s&closebutton=1", collaboraURL, url.QueryEscape(wopiSrc))
|
||||
// Try /lool/dist/loleaflet.html (standard Collabora path)
|
||||
editorURL := fmt.Sprintf("%s/lool/dist/loleaflet.html?WOPISrc=%s&closebutton=1", collaboraURL, url.QueryEscape(wopiSrc))
|
||||
|
||||
// Return HTML page that loads Collabora in an iframe
|
||||
htmlContent := fmt.Sprintf(`<!DOCTYPE html>
|
||||
|
||||
Reference in New Issue
Block a user