Fix Collabora endpoint: use /browser/dist/cool.html instead of /loleaflet/dist/loleaflet.html

This commit is contained in:
Leon Bösche
2026-01-13 12:46:56 +01:00
parent c16cd49237
commit 19825763ad

View File

@@ -683,7 +683,7 @@ func collaboraProxyHandler(w http.ResponseWriter, r *http.Request, db *database.
<div class="loading">
<p>Loading Collabora Online...</p>
</div>
<form method="POST" action="%s/loleaflet/dist/loleaflet.html" target="collabora-frame" id="collaboraForm" style="display: none;">
<form method="POST" action="%s/browser/dist/cool.html" target="collabora-frame" id="collaboraForm" style="display: none;">
<input type="hidden" name="WOPISrc" value="%s">
</form>
<iframe name="collabora-frame" id="collabora-frame" style="position:fixed; top:0; left:0; width:100%%; height:100%%; border:none;"></iframe>
@@ -692,7 +692,7 @@ func collaboraProxyHandler(w http.ResponseWriter, r *http.Request, db *database.
setTimeout(function() {
var form = document.getElementById('collaboraForm');
if (form) {
console.log('[COLLABORA] Submitting form to /loleaflet/dist/loleaflet.html');
console.log('[COLLABORA] Submitting form to /browser/dist/cool.html');
form.submit();
} else {
console.error('[COLLABORA] Form not found');