fix map popup links: navigate to article section, not iframe anchor
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 11s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 4s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 7s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 11s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 4s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 7s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s
Read more links in map popups now point to the full overview article URL with anchor (e.g. /en/child-protection-laws-2026-global-overview/#germany) instead of just #germany which triggered fullscreen in the iframe. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -222,8 +222,10 @@ body { margin: 0; overflow: hidden; }
|
||||
'<div class="ifk-popup-detail">' + loc.detail + '</div>';
|
||||
var anchor = ARTICLE_ANCHORS[c.iso3];
|
||||
if (anchor) {
|
||||
var readMore = { en: 'Read more ↓', de: 'Weiterlesen ↓', fr: 'En savoir plus ↓' };
|
||||
html += '<a class="ifk-popup-link" href="#' + anchor + '" target="_parent">' + (readMore[LANG] || readMore.en) + '</a>';
|
||||
var overviewPaths = { en: '/en/child-protection-laws-2026-global-overview/', de: '/de/kinderschutzgesetze-2026-weltweiter-ueberblick/', fr: '/fr/lois-protection-enfance-2026-panorama-mondial/' };
|
||||
var articleUrl = (overviewPaths[LANG] || overviewPaths.en) + '#' + anchor;
|
||||
var readMore = { en: 'Read more →', de: 'Weiterlesen →', fr: 'En savoir plus →' };
|
||||
html += '<a class="ifk-popup-link" href="' + articleUrl + '" target="_parent">' + (readMore[LANG] || readMore.en) + '</a>';
|
||||
}
|
||||
popup.setLngLat(e.lngLat).setHTML(html).addTo(_ifkMap);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user