Fix issue with graph generation for urls with url encoded values

This commit is contained in:
Ole Eskild Steensen 2023-02-17 16:15:40 +01:00
parent acfea37940
commit 545b68773d

View File

@ -23,7 +23,7 @@
function filterToDepth(data) { function filterToDepth(data) {
let remaining = JSON.parse(JSON.stringify(data.nodes)); 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); let currentNode = remaining[currentLink] || Object.values(remaining).find((v) => v.home);
delete remaining[currentNode.url]; delete remaining[currentNode.url];
if (!currentNode.home) { if (!currentNode.home) {