From 02459a2e6d6df71473e50579f1d3274096b6ce18 Mon Sep 17 00:00:00 2001 From: Khushal Malhotra Date: Fri, 21 Aug 2026 19:36:30 +0530 Subject: [PATCH] fix: restore default card icons after back-navigation Signed-off-by: Khushal Malhotra --- content/en/_index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/en/_index.md b/content/en/_index.md index bff01b6339e..554bf10ec9c 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -151,6 +151,14 @@ function restoreImage(imgId, originalSrc) { var img = document.getElementById(imgId); img.src = originalSrc; } + +window.addEventListener('pageshow', function (event) { + if (!event.persisted) return; + document.querySelectorAll('.l5btn[data-default]').forEach(function (link) { + var img = link.querySelector('img'); + restoreImage(img.id, link.dataset.default); + }); +});