Reply To: Links in map open a new window

Home Forums MapPress Support Links in map open a new window Reply To: Links in map open a new window

#18404
Chris
Keymaster

Hi,

Sorry for the confusion, I think I misunderstood your original question.  This should help:

To control what happens when a marker is clicked: use the settings ‘open POI’, ‘open post’, and  ‘open post in new tab’.  One of these options (‘open post’) wasn’t working properly – I had planned to deprecate it, but left it on the settings screen.  This is fixed in 2.53.3.

To control what happens when the POI title is clicked (I think this is what you want to do): use the ‘templates’ section in the MapPress settings to edit the ‘mashup popup’ template.  In that template you’ll see:

<div class='mapp-title'><a href='{{{poi.url}}}' target='_blank'>{{{poi.title}}}</a>

Just change it to this (remove the target=’_blank’) and save:

<div class='mapp-title'><a href='{{{poi.url}}}'>{{{poi.title}}}</a>