mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-14 22:12:22 +01:00
Merge pull request #445 from maltejur/fix_url_id_param
Fix URL id param
This commit is contained in:
commit
eb85693fa0
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ function initOverlap(){
|
|||
if(args){
|
||||
id = args.split("id=")[1];
|
||||
if(id){
|
||||
id = parseInt(id.split("&")[0]);
|
||||
id = id.split("&")[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ function initView(){
|
|||
if(args){
|
||||
id = args.split("id=")[1];
|
||||
if(id){
|
||||
id = parseInt(id.split("&")[0]);
|
||||
id = id.split("&")[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue