From b3b0b4d835783907566ff08985f0ee1a48027e8a Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Fri, 13 Oct 2023 15:56:30 -0500 Subject: [PATCH] Update maps to allow encoded urls --- src/templates/iframe.html.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templates/iframe.html.j2 b/src/templates/iframe.html.j2 index b752d132d..316284e18 100644 --- a/src/templates/iframe.html.j2 +++ b/src/templates/iframe.html.j2 @@ -566,7 +566,8 @@ will want to adjust the Map.data which populates the select input and legend. // Check for zoom and location inputs if(window.location.hash){ - let viewportComponents = window.location.hash.split("#")[1].split("|"); + let decodedHash = decodeURI(window.location.hash) + let viewportComponents = decodedHash.split("#")[1].split("|"); [latitude, longitude] = viewportComponents[0].split(',') zoom = viewportComponents[1] }