Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

No Marker When question_mark_in_urls is False #122

Open johndescs opened 7 years ago

johndescs commented 7 years ago

Hi,

When _question_mark_inurls is false the markers are not shown. The path is relative, and without question mark the browser will append it to the whole URL. Adding '/' to each marker path in _include/functionsmap.php fixes it for me (but will probably break setups with aliases instead of subdomains).

And BTW thanks for this great plugin :)

Saur0o0n commented 6 years ago

I confirm the problem with all pins except "default" (with has absolute adress for image - not relative). Also (probably) the same error occurs with map link (globe icon) in upper menu - it has relative URL which is broken when you use mod_rewritten urls.

Edit: Quick fix for "map" is to add to mod_rewrite definition RewriteRule "^osmmap/(.+)$" "plugins/piwigo-openstreetmap/osmmap.php?$1" [L]