From 20b984bb5835f01b3728c66dfad488f7443e7c3e Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 6 Jan 2026 20:17:48 +1100 Subject: [PATCH] another tweak --- cmd/server/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index 092ea0d..09f3e43 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -328,7 +328,8 @@ func buildDiagramsNetURL(r *http.Request, id string) string { scheme = "https" } base := fmt.Sprintf("%s://%s/diagram?id=%s", scheme, r.Host, url.QueryEscape(id)) - return "https://app.diagrams.net/?splash=0&ui=min&url=" + url.QueryEscape(base) + // Request AWS library for custom shapes (e.g., aws4) to render correctly. + return "https://app.diagrams.net/?splash=0&ui=min&libs=aws4&url=" + url.QueryEscape(base) } func addCORS(w http.ResponseWriter) {