piwigo-openstreetmap icon indicating copy to clipboard operation
piwigo-openstreetmap copied to clipboard

No Marker When question_mark_in_urls is False

Open johndescs opened this issue 8 years ago • 1 comments

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 :)

johndescs avatar Oct 31 '16 13:10 johndescs

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]

Saur0o0n avatar Dec 28 '17 20:12 Saur0o0n