(WMS) Layer Preview does not properly encode layer identifiers

Description

The OGC (WMS) specifications follow "percent encoding" encoding practices for parameter arguments, with some specializations explicitly allowed across the entire specification.

However, the Layer Preview page does not properly encode the layer identifier/name (and possible other arguments, like style, crs), causing a broken experience when trying to preview these layers.

To reproduce this, simply re-publish the `World:World` layer data with a layer identifier/name that contains a plus, e.g. `World: World + with a plus`.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Nathan Schulte

Triage

Fix versions

Affects versions

None

Priority

Medium
Configure