Update file share link host to use 'www' for consistency

This commit is contained in:
Leon Bösche
2026-01-25 00:20:32 +01:00
parent a321104b4c
commit 7ed915555b

View File

@@ -2766,7 +2766,7 @@ func getFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *databas
}
host := r.Host
if host == "" {
host = "go.b0esche.cloud"
host = "www.b0esche.cloud"
}
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
@@ -2834,7 +2834,7 @@ func createFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *data
}
host := r.Host
if host == "" {
host = "go.b0esche.cloud"
host = "www.b0esche.cloud"
}
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
@@ -3103,7 +3103,7 @@ func getUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *dat
}
host := r.Host
if host == "" {
host = "go.b0esche.cloud"
host = "www.b0esche.cloud"
}
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
@@ -3168,7 +3168,7 @@ func createUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *
}
host := r.Host
if host == "" {
host = "go.b0esche.cloud"
host = "www.b0esche.cloud"
}
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)