Skip to content

Commit

Permalink
[Backport release_3_9] Update lizmapServices.class.php (#5370)
Browse files Browse the repository at this point in the history
* Update lizmapServices.class.php

Causes of bad url construction such as http://myhost/cgi-bin/qgis_mapserv.fcgi/lizmap//server.json adding a double slash before of server.json and avoid the correct recognization of Lizmap server plugin on Master

* Update lizmap/modules/lizmap/classes/lizmapServices.class.php

Co-authored-by: Étienne Trimaille <[email protected]>

---------

Co-authored-by: Antonio Viscomi <[email protected]>
Co-authored-by: Étienne Trimaille <[email protected]>
  • Loading branch information
3 people authored Feb 6, 2025
1 parent 16299d3 commit 2a91941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lizmap/modules/lizmap/classes/lizmapServices.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ public function getHostLizmapAPI()
{
if (empty($this->lizmapPluginAPIURL)) {
// When the Lizmap API URL is not set, we use the WMS server URL only
// and we add '/lizmap'/ at then end
return rtrim($this->wmsServerURL, '/').'/lizmap/';
// and we add '/lizmap' at then end
return rtrim($this->wmsServerURL, '/').'/lizmap';
}

// When the Lizmap API URL is set
Expand Down

0 comments on commit 2a91941

Please sign in to comment.