From 02ed59f2be52c8b7181a379407ff59206b452e82 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 12 Jan 2026 15:22:10 +1100 Subject: [PATCH] updates --- cmd/server/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index 70a46af..499f613 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -63,7 +63,7 @@ var uploadTpl = template.Must(template.New("upload").Parse(`

Gliffy → draw.io Converter

-

Upload a .gliffy (zip) or .gon JSON file. Convert to .drawio, or open directly in diagrams.net.

+

Upload a .gliffy (zip) or .gon JSON file. Convert to .drawio, or open directly in your draw.io instance.

@@ -73,7 +73,7 @@ var uploadTpl = template.Must(template.New("upload").Parse(`
- +
@@ -336,7 +336,9 @@ func buildDiagramsNetURL(r *http.Request, id string) string { } base := fmt.Sprintf("%s://%s/diagram?id=%s", scheme, r.Host, url.QueryEscape(id)) // Request AWS library for custom shapes (e.g., aws4) to render correctly. - return drawioBaseURL + "/?splash=0&ui=min&libs=aws4&url=" + url.QueryEscape(base) + // Provide both query parameter and fragment (#U) so self-hosted instances that prefer #U can load the file. + encoded := url.QueryEscape(base) + return fmt.Sprintf("%s/?splash=0&ui=min&libs=aws4&url=%s#U%s", drawioBaseURL, encoded, encoded) } func addCORS(w http.ResponseWriter) {