We're updating the issue view to help you get more done. 

Tiled layers preview does not use Proxy Base Url

Description

Geoserver tiled layers preview incorrectly points to http://127.0.0.1:8080/geoserver/gwc/... even though "Proxy Base URL" is set correctly. The expected behaviour would be that the previews point to addresses prefixed by "Proxy Base Url" instead.
If the wrong prefix is replaced by hand on the browser address bar, the preview works. The problem seems to be only with the links displayed on the tiled layers preview.

The regular non-tiled layer previews work as expected.

This is the code to create the WMS demo page links in v2.9 (which works):

https://github.com/geoserver/geoserver/blob/5b557be8868a443ccf9e0df1dc1971fa22e6f233/src/web/demo/src/main/java/org/geoserver/web/demo/DemoRequestsPage.java#L168

This is the code to generate the GWC (tiled) demo page links for v2.9 (which does not quite work):

https://github.com/geoserver/geoserver/blob/5b557be8868a443ccf9e0df1dc1971fa22e6f233/src/web/gwc/src/main/java/org/geoserver/gwc/web/layer/CachedLayersPage.java#L280

It seems that the problem is in the GWC demo page generation which does not pull the getGeoServer().getGlobal().getSettings().getProxyBaseUrl() property.

The "actions" links have the same problem:
https://github.com/geoserver/geoserver/blob/5b557be8868a443ccf9e0df1dc1971fa22e6f233/src/web/gwc/src/main/java/org/geoserver/gwc/web/layer/CachedLayersPage.java#L173

Environment

Ubuntu 16.04, Tomcat 8, OpenJDK 1.8, Nginx reverse proxy

Status

Assignee

Ian Turton

Reporter

Daniel Araujo Miranda

Triage

None

Fix versions

Affects versions

2.8.0
2.8.4
2.7.5
2.8.2
2.7.6
2.9.0
2.8.3

Time tracking

2h

Components

Priority

Low