GeoServerDataDirectory::parsedStyle's resourceLocator does not preserve URL #fragments

Description

GeoServerDataDirectory:arsedStyle's resourceLocator does not preserve URL #fragments (wikipedia) when locating a resource.

Supporting URL fragments would be generally useful to designate subordinate resources, e.g., an individual icon inside a sprite sheet. This pattern has already been established for bulk WKT shapes (link), for which you can write:

The parsedStyle function's resourceLocator uses only the base of the resource URL to locate the resource, but then the resourceLocator attempts to recreate the original URL that for the resource, but only by re-adding the query parameters. It should more faithfully recreate that URL by also including #fragments.

Environment

None

Status

Assignee

Unassigned

Reporter

Matt Kruszewski

Triage

None

Fix versions

Affects versions

None

Priority

Medium
Configure