There may not have solution for this, because this is a specific requirmeent of yours.
I mean, there are 3 ways joomla can get the Itemid value for a link:
- getting the current page itemid value (no what you want)
- getting it from a set value (not what you want)
- getting it from the menu database tables (close to what you want)
So you must expect urls from the map infowindow to send to the same Itemid urls links.
Either the one you set in the plugin or the one it gets.
What we can try is improve the query to get it from the database.
DIsable SEF in joomla config and post here all the different links it should send to, dpending on the item category.
I'll try to set the query for your needs in the plugin.
- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.