Skip to content

Commit

Permalink
ensure GEOSERVER_LOCATION ends with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
malnajdi committed Feb 2, 2021
1 parent efaf1ab commit b7aef91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,10 @@
'GEOSERVER_LOCATION', 'http://localhost:8080/geoserver/'
)

# add trailing slash to geoserver location url.
if not GEOSERVER_LOCATION.endswith('/'):
GEOSERVER_LOCATION = '{}/'.format(GEOSERVER_LOCATION)

GEOSERVER_PUBLIC_SCHEMA = os.getenv(
'GEOSERVER_PUBLIC_SCHEMA', SITE_HOST_SCHEMA
)
Expand Down

0 comments on commit b7aef91

Please sign in to comment.