diff --git a/pkg/inventory/badge.go b/pkg/inventory/badge.go index d039330..1a1a19d 100644 --- a/pkg/inventory/badge.go +++ b/pkg/inventory/badge.go @@ -22,7 +22,10 @@ func BadgeHandler(reader StockReader) http.HandlerFunc { locationID := LocationID(r.URL.Query().Get("location_id")) if locationID == "" { - locationID = "default" + locationID = LocationID(r.URL.Query().Get("country")) + } + if locationID == "" { + locationID = "se" } w.Header().Set("Content-Type", "text/html; charset=utf-8")