Merge pull request #445 from maltejur/fix_url_id_param

Fix URL id param
This commit is contained in:
Stefano 2022-04-05 21:53:02 +02:00 committed by GitHub
commit eb85693fa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -141,7 +141,7 @@ function initOverlap(){
if(args){
id = args.split("id=")[1];
if(id){
id = parseInt(id.split("&")[0]);
id = id.split("&")[0];
}
}

View file

@ -267,7 +267,7 @@ function initView(){
if(args){
id = args.split("id=")[1];
if(id){
id = parseInt(id.split("&")[0]);
id = id.split("&")[0];
}
}