From adb034d26e6f465d07c75a2fcfd3477c38539c4f Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Wed, 19 Mar 2025 19:34:57 +0100 Subject: [PATCH] Add reload on iframe redirect --- app/assets/javascripts/edit/id.js.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/edit/id.js.erb b/app/assets/javascripts/edit/id.js.erb index 7f111b41e..b32f6cb01 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -36,4 +36,10 @@ $(function () { if (idData.gpx) params.set("gpx", idData.gpx); id.attr("src", idData.url + "#" + params); + + id.ready(function () { + if (!this.contentWindow.location.href.startsWith(idData.url)) { + location.reload(); + } + }); }); -- 2.39.5