OpenLayers preview does not work if authkey community module is enabled

Description

The authkey community module contains a URLMangler implementation to automatically add the authkey parameter to each request's KVP map.

Problem is, this breaks the OpenLayers-based layer preview, as the generated JavaScript looks like this:

1 2 3 4 5 source: new ol.source.ImageWMS({ ... url: 'http://localhost:8080/geoserver/?authkey=ba0eb646-0726-4ba0-a050-bc27aca67701/cite/wms', ... })

But should instead look like this:

1 2 3 4 5 source: new ol.source.ImageWMS({ ... url: 'http://localhost:8080/geoserver/cite/wms?authkey=ba0eb646-0726-4ba0-a050-bc27aca67701', ... })

I.e. the query string is wrongly appended to the base URL.

Environment

None

Status

Assignee

Stefano Costa

Reporter

Stefano Costa

Triage

None

Fix versions

Affects versions

2.9-M0
2.8.0
2.7.3

Components

Priority

Medium
Configure