[Qgis-developer] QGIS web client and dashpos in GetUrlParams.js
Luca Manganelli
luca76 at gmail.com
Fri Jan 16 03:29:21 PST 2015
Hi,
this line:
var dashpos = urlBaseArray[3].indexOf('-')
causes trouble to us. We had to comment it and put:
var dashpos = -1
because we use this URL to access to our Qgis Web Client (we use URL
rewriting, too):
http://ourserver/qgis-web-client/general/general/....
and with serverAndCGI set to:
var serverAndCGI="http://ourserver/qgis-web-client/wms"
the original 'dashpos' sets the wmsURI to:
wmsURI = 'http://ourserver/qgis-web-client/wms/-web-client/general/
generale&_dc=1421403958538&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings'
the wrong part is: [...]/-web-client/[...] that is taken from dashpos.
With dashpos = -1, it works perfectly.
Can someone explain why is this daspos introduced?
More information about the Qgis-developer
mailing list