Link with same tab redirection

17 views
Skip to first unread message

Giuseppe Riccardi

unread,
Oct 13, 2025, 1:21:28 AM (9 days ago) Oct 13
to GeoAdminCh API
Hello,

I'm creating our own KML and passing the link as layer to the https://map.geo.admin.ch/embed.html (used in iframe).
For each placemark we pass in the description an html table where we display some data.
I'm also adding a link, as <a> tag with href, that when clicked execute the redirection in the same browser tab using as target "_top". 
The issue is that when the html is loaded on the map the target property is changed to "_black" and rel="noopener noreferrer" is added in the properties of the tag.
Is there a way to avoid this?
And if this is not possible. 
Is there a way to add button onclick actions or possibilities to post custom messages as it happening currently with gaFeatureSelection herehttps://codepen.io/geoadmin/pen/yOBzqM?editors=0010?

Thanks for any help.

Best regards,
Giuseppe Riccardi

GeoAdminCh API

unread,
Oct 21, 2025, 10:17:41 AM (21 hours ago) Oct 21
to GeoAdminCh API
Ciao Giuseppe,

Thank you for your question.

Indeed, due to security reasons, we are very cautious with what we allow in our KMLs. We override the target with "_blank" and add / override the rel property with the value "noopene noreferrer" as a mitigation against tabnabbing attacks.

We're sorry not to be of any help with your demand.

Best regards,
Helpdesk federal geoportal
Reply all
Reply to author
Forward
0 new messages