From a321104b4c8ccec124549011a65e92bd2b41e0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 25 Jan 2026 00:02:59 +0100 Subject: [PATCH] Update file share link URLs to remove 'public' segment for consistency --- go_cloud/internal/http/routes.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go_cloud/internal/http/routes.go b/go_cloud/internal/http/routes.go index faaae21..b815b7e 100644 --- a/go_cloud/internal/http/routes.go +++ b/go_cloud/internal/http/routes.go @@ -2768,7 +2768,7 @@ func getFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *databas if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -2836,7 +2836,7 @@ func createFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *data if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -3105,7 +3105,7 @@ func getUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *dat if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -3170,7 +3170,7 @@ func createUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db * if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{