From 6f15c1d5ecd75e792889f4fcfe1cb4779c93f1f3 Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Sat, 29 Sep 2018 22:11:48 +0200
Subject: [PATCH] model-server: landing page tweak

---
 src/servers/model/server/landing.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/servers/model/server/landing.ts b/src/servers/model/server/landing.ts
index 1f8af4391..a0bc1866d 100644
--- a/src/servers/model/server/landing.ts
+++ b/src/servers/model/server/landing.ts
@@ -64,7 +64,7 @@ function create() {
         <textarea style="height: 280px; width: 600px; font-family: monospace" id="query-text"></textarea><br>
         <button class="button button-primary" style="width: 600px" id="query">Query</button>
         <div id='error' style='color: red; font-weight: blue'></div>
-        <div>Static input files available as CIF and BinaryCIF at <a href='ModelServer/static/cif/1cbs' target='_blank'>static/cif/id</a> and <a href='ModelServer/static/bcif/1cbs' target='_blank'>static/bcif/id</a> respectively.</div>
+        <div>Static input files available as CIF and BinaryCIF at <a href='/ModelServer/static/cif/1cbs' target='_blank'>static/cif/id</a> and <a href='/ModelServer/static/bcif/1cbs' target='_blank'>static/bcif/id</a> respectively.</div>
         <script>
             var Examples = ${JSON.stringify(examples)};
             var err = document.getElementById('error');
@@ -78,7 +78,7 @@ function create() {
                 err.innerText = '';
                 try {
                     var q = JSON.parse(queryTextEl.value);
-                    var path = 'ModelServer/api/v1?' + encodeURIComponent(JSON.stringify(q));
+                    var path = '/ModelServer/api/v1?' + encodeURIComponent(JSON.stringify(q));
                     console.log(path);
                     window.open(path, '_blank');
                 } catch (e) {
-- 
GitLab