piwigo-openstreetmap
piwigo-openstreetmap copied to clipboard
No Marker When question_mark_in_urls is False
Hi,
When question_mark_in_urls 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/functions_map.php fixes it for me (but will probably break setups with aliases instead of subdomains).
And BTW thanks for this great plugin :)
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]