Luke Plant avatar Luke Plant committed 8f7feca

Quick fix for URLs

Comments (0)

Files changed (2)


     $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
-    <form method="POST" action="{{ url_for('download_file') }}">
+    <form method="POST" action="/seating-planner{{ url_for('download_file') }}">
       <textarea name="data"></textarea>
       <input type="text" name="filename">


     <script src="//"></script>
     <link rel="stylesheet" media="screen" href="//">
     <script type=text/javascript>
-      $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
+      $SCRIPT_ROOT = {{ request.script_root|tojson|safe }} + "/seating-planner/";
-    <script src="{{ url_for('static', filename='connections.js') }}"></script>
-    <script src="{{ url_for('static', filename='plans.js') }}"></script>
-    <link rel="stylesheet" media="screen" href="{{ url_for('static', filename='style.css') }}">
+    <script src="/seating-planner{{ url_for('static', filename='connections.js') }}"></script>
+    <script src="/seating-planner{{ url_for('static', filename='plans.js') }}"></script>
+    <link rel="stylesheet" media="screen" href="/seating-planner{{ url_for('static', filename='style.css') }}">
     <h1>Seating planner</h1>
     <p><input type="submit" id="find-solution" value="Find solution">
-      <img id="loading" src="{{ url_for('static', filename='loading.gif') }}" style="display: none;">
+      <img id="loading" src="/seating-planner{{ url_for('static', filename='loading.gif') }}" style="display: none;">
     <p>Plans display groups of people, with the number of other people on their
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.