diff --git a/src/providers/wms/qgswmsprovider.cpp b/src/providers/wms/qgswmsprovider.cpp index 4a7bf550c4ce..b063b23461f7 100644 --- a/src/providers/wms/qgswmsprovider.cpp +++ b/src/providers/wms/qgswmsprovider.cpp @@ -3723,7 +3723,15 @@ QUrl QgsWmsProvider::getLegendGraphicFullURL( double scale, const QgsRectangle & { bool useContextualWMSLegend = mSettings.mEnableContextualLegend; - QString lurl = getLegendGraphicUrl(); + QString lurl; + if ( mSettings.mIgnoreGetMapUrl ) + { + lurl = mSettings.mBaseUrl; + } + else + { + lurl = getLegendGraphicUrl(); + } if ( lurl.isEmpty() ) { diff --git a/src/ui/qgsnewhttpconnectionbase.ui b/src/ui/qgsnewhttpconnectionbase.ui index 0b0f5e229d24..0cbab6703a13 100644 --- a/src/ui/qgsnewhttpconnectionbase.ui +++ b/src/ui/qgsnewhttpconnectionbase.ui @@ -119,7 +119,7 @@ - Ignore GetMap/GetTile URI reported in capabilities + Ignore GetMap/GetTile/GetLegendGraphic URI reported in capabilities