Browse Source

Use no abs path, so that it can be deployed in a folder.

Jocelyn Delande 10 years ago
parent
commit
33ca6c8bd2
2 changed files with 3 additions and 3 deletions
  1. 1 1
      backend.py
  2. 2 2
      views/base.tpl

+ 1 - 1
backend.py

@@ -183,7 +183,7 @@ Results Map
 
 @route('/map')
 def public_map():
-    geojsonPath = '/public.json'
+    geojsonPath = 'public.json'
     return template('map', geojson=geojsonPath)
 
 @route('/public.json')

+ 2 - 2
views/base.tpl

@@ -27,7 +27,7 @@
     %if page == 'form':
     <h1>Réseau wifi expérimental</h1>
     %else:
-    <h1><a href="/">Réseau wifi expérimental</a></h1>
+    <h1><a href="">Réseau wifi expérimental</a></h1>
     %end
     </div>
   </header>
@@ -41,7 +41,7 @@
         Vos données personnelles sont en lieu sûr.
         <br>
         <a href="https://faimaison.net" target="_blank">FAImaison.net</a> -
-        <a href="/legal">Mentions légales</a>
+        <a href="legal">Mentions légales</a>
     </p>
   </footer>