Skip to content

Commit

Permalink
[geonode] Avoid needless redirects when parsing layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jan 12, 2022
1 parent 8d74437 commit a0c4b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geocms/geonode/qgsgeonoderequest.cpp
Expand Up @@ -293,7 +293,7 @@ QList<QgsGeoNodeRequest::ServiceLayerDetail> QgsGeoNodeRequest::parseLayers( con
{
if ( wmsURLFormat.isEmpty() && wfsURLFormat.isEmpty() && wcsURLFormat.isEmpty() && xyzURLFormat.isEmpty() )
{
bool success = requestBlocking( QStringLiteral( "/api/layers/" ) + layerStruct.id );
bool success = requestBlocking( QStringLiteral( "/api/layers/%1/" ).arg( layerStruct.id ) );
if ( success )
{
const QJsonDocument resourceUriDocument = QJsonDocument::fromJson( this->lastResponse() );
Expand Down

0 comments on commit a0c4b19

Please sign in to comment.