From 545b68773d1cebf64e9452d4530e972c550df6ad Mon Sep 17 00:00:00 2001 From: Ole Eskild Steensen Date: Fri, 17 Feb 2023 16:15:40 +0100 Subject: [PATCH] Fix issue with graph generation for urls with url encoded values --- src/site/_includes/components/graphScript.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/_includes/components/graphScript.njk b/src/site/_includes/components/graphScript.njk index b8a5981..ce07932 100644 --- a/src/site/_includes/components/graphScript.njk +++ b/src/site/_includes/components/graphScript.njk @@ -23,7 +23,7 @@ function filterToDepth(data) { let remaining = JSON.parse(JSON.stringify(data.nodes)); - let currentLink = window.location.pathname; + let currentLink = decodeURI(window.location.pathname); let currentNode = remaining[currentLink] || Object.values(remaining).find((v) => v.home); delete remaining[currentNode.url]; if (!currentNode.home) {