WMS 1.1.1 capabilities document contains invalid GetLegendGraphic links

Description

I was able to reproduce this on master using the GeoServer release test data, to reproduce just perform a WMS 1.1.1. GetCapabilities, the document will contain the following links:

... as you can see the service=WMS parameter is missing, this happens for all GetLegendGraphic URLs.

Note that the GetLegendGraphic operation metadata is correct:

Environment

None

Assignee

Unassigned

Reporter

Nuno Oliveira

Triage

None

Fix versions

None

Affects versions

None

Priority

Medium
Configure