Skip to content

Commit 36d322a

Browse files
author
tsv2013
committed
Temporary rough fix for navigation issues
1 parent d2c3bc1 commit 36d322a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def get_results():
6969
post_id = request.args.get('postId')
7070
return jsonify(db.get_results(post_id))
7171

72-
@app.route('/', defaults={'path': 'index.html'})
73-
@app.route('/about', defaults={'path': 'index.html'})
72+
@app.route('/about')
7473
@app.route('/run/<path:path>')
7574
@app.route('/edit/<path:path>')
7675
@app.route('/results/<path:path>')
76+
@app.route('/', defaults={'path': 'index.html'})
7777
def serve_static(path):
78-
return send_from_directory('public', path)
78+
return send_from_directory('public', 'index.html')
7979

8080
if __name__ == '__main__':
8181
if not os.path.exists('flask_session'):

0 commit comments

Comments
 (0)