Skip to content

Commit 3fb24db

Browse files
committed
apk: Fix ... link
1 parent 9de9c01 commit 3fb24db

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/apk/index.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,11 @@ func (h *handler) renderShort(w http.ResponseWriter, r *http.Request, open func(
697697

698698
if !full {
699699
if !isCurl {
700-
fmt.Fprintf(w, "\n<a title=%q href=%q>...</a>", "show old versions", "?full=true")
700+
u := r.URL
701+
q := u.Query()
702+
q.Set("full", "true")
703+
u.RawQuery = q.Encode()
704+
fmt.Fprintf(w, "\n<a title=%q href=%q>...</a>", "show old versions", u.String())
701705
}
702706
}
703707

0 commit comments

Comments
 (0)