Browse Source

#163 - Another potential fix for ? in atlantis production env

Elena Cristina Raffay Iglesias 1 year ago
parent
commit
90e08c8f4e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apps/atlantis/index.html

+ 2 - 2
apps/atlantis/index.html

@@ -18,10 +18,10 @@
18 18
     }
19 19
     // Update the link urls
20 20
     for (var i = 0; i < links.length; ++i) {
21
-      links[i].href = links[i].href.replace('exp://REPLACE_ME', baseUri);
22 21
       if(!baseUri.includes("?")){
23
-        links[i].href = links[i].href.concat("?");
22
+        links[i].href = links[i].href.replace('exp://REPLACE_ME', "?" + baseUri);
24 23
       }
24
+      links[i].href = links[i].href.replace('exp://REPLACE_ME', baseUri);
25 25
     }
26 26
     var redirectInterval = setInterval(function() {
27 27
       var countdown = document.querySelector('.countdown');