From 9741abf5df2cbabc75468e6973a25f9bdbe3aa68 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 1 Jul 2023 11:01:15 +0000 Subject: [PATCH] wiki: Only keep redirection to the new docs section Signed-off-by: Michael Tremer --- src/web/__init__.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/web/__init__.py b/src/web/__init__.py index cae5bc01..c32322c5 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -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 -- 2.47.3