diff --git a/tutor/server.py b/tutor/server.py index d5154b6..6400cec 100644 --- a/tutor/server.py +++ b/tutor/server.py @@ -102,10 +102,11 @@ def make_app(settings) -> tornado.web.Application: if static_path := settings.get("static"): paths.extend( [ - (r"/", tornado.web.RedirectHandler, {"url": "/app/index.html"}), - (r"/app", tornado.web.RedirectHandler, {"url": "/app/index.html"}), - (r"/app/", tornado.web.RedirectHandler, {"url": "/app/index.html"}), - (r"/app/(.*)", tornado.web.StaticFileHandler, {"path": static_path}), + ( + r"/(.*)", + tornado.web.StaticFileHandler, + {"path": static_path, "default_filename": "index.html"}, + ), ] ) return tornado.web.Application(paths, **settings)