From cb98d201214151919e754ddafa0ba53b0cfc4725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Tue, 5 Apr 2022 18:09:47 +0200 Subject: [PATCH] Fix URL id param --- web/_js/infoblock.js | 2 +- web/_js/overlap.js | 2 +- web/_js/view.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/_js/infoblock.js b/web/_js/infoblock.js index 524ef993..edbaccb1 100644 --- a/web/_js/infoblock.js +++ b/web/_js/infoblock.js @@ -4,7 +4,7 @@ function createInfoBlock(entry) { let headerElement = document.createElement("h2"); let linkElement = document.createElement("a"); - linkElement.href = "?" + entry.id; + linkElement.href = "?id=" + entry.id; linkElement.innerText = entry.name; headerElement.appendChild(linkElement); diff --git a/web/_js/overlap.js b/web/_js/overlap.js index 61937518..4d4aa6a1 100644 --- a/web/_js/overlap.js +++ b/web/_js/overlap.js @@ -141,7 +141,7 @@ function initOverlap(){ if(args){ id = args.split("id=")[1]; if(id){ - id = parseInt(id.split("&")[0]); + id = id.split("&")[0]; } } diff --git a/web/_js/view.js b/web/_js/view.js index 701cbfb5..9adee04e 100644 --- a/web/_js/view.js +++ b/web/_js/view.js @@ -267,7 +267,7 @@ function initView(){ if(args){ id = args.split("id=")[1]; if(id){ - id = parseInt(id.split("&")[0]); + id = id.split("&")[0]; } }