Update WOPI source URL for document viewing in publicFileShareHandler
This commit is contained in:
BIN
go_cloud/api
BIN
go_cloud/api
Binary file not shown.
@@ -3010,7 +3010,7 @@ func publicFileShareHandler(w http.ResponseWriter, r *http.Request, db *database
|
||||
viewerSession["viewUrl"] = viewPath
|
||||
} 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://%s/public/wopi/share/%s", scheme, host, token)
|
||||
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))
|
||||
viewerSession["viewUrl"] = collaboraUrl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user