]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Only keep redirection to the new docs section
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Jul 2023 11:01:15 +0000 (11:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Jul 2023 11:01:15 +0000 (11:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/__init__.py

index cae5bc012765eda73283e7e2a4f9144f93c1fe45..c32322c53b300a72052d129b423a6d282993fdfe 100644 (file)
@@ -346,17 +346,8 @@ class Application(tornado.web.Application):
                ]  + authentication_handlers)
 
                # wiki.ipfire.org
-               self.add_handlers(r"wiki\.([a-z]+\.dev\.)?ipfire\.org",
-                       authentication_handlers + [
-
-                       # Actions
-
-
-                       # Serve any static files
-                       (r"/static/(.*)", tornado.web.StaticFileHandler, { "path" : self.settings.get("static_path") }),
-
-                       # Render pages
-                       (r"([A-Za-z0-9\-_\/]+)?", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/docs{0}" }),
+               self.add_handlers(r"wiki\.([a-z]+\.dev\.)?ipfire\.org", [
+                       (r"/(.*)", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/docs/{0}" }),
                ])
 
                # ipfire.org