From 687c7a5a61dedc61b6e19b8bea7c7e89a8842d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sat, 10 Jan 2026 03:04:29 +0100 Subject: [PATCH] Update download URLs in viewer handlers to use the correct domain --- go_cloud/internal/http/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go_cloud/internal/http/routes.go b/go_cloud/internal/http/routes.go index e64f415..d580dd4 100644 --- a/go_cloud/internal/http/routes.go +++ b/go_cloud/internal/http/routes.go @@ -379,7 +379,7 @@ func viewerHandler(w http.ResponseWriter, r *http.Request, db *database.DB, audi db.LogActivity(r.Context(), userID, orgID, &fileId, "view_file", map[string]interface{}{}) // Build download URL - using full path for frontend to fetch with auth headers - viewUrl := fmt.Sprintf("https://b0esche.cloud/api/orgs/%s/files/download?path=%s", orgID.String(), file.Path) + viewUrl := fmt.Sprintf("https://go.b0esche.cloud/orgs/%s/files/download?path=%s", orgID.String(), file.Path) // Determine if it's a PDF based on file extension isPdf := strings.HasSuffix(strings.ToLower(file.Name), ".pdf") @@ -430,7 +430,7 @@ func userViewerHandler(w http.ResponseWriter, r *http.Request, db *database.DB, db.LogActivity(r.Context(), userID, uuid.Nil, &fileId, "view_user_file", map[string]interface{}{}) // Build download URL for user files - using full path for frontend to fetch with auth headers - viewUrl := fmt.Sprintf("https://b0esche.cloud/api/user/files/download?path=%s", file.Path) + viewUrl := fmt.Sprintf("https://go.b0esche.cloud/user/files/download?path=%s", file.Path) // Determine if it's a PDF based on file extension isPdf := strings.HasSuffix(strings.ToLower(file.Name), ".pdf")