From: Michael Tremer Date: Sat, 1 Jul 2023 11:01:15 +0000 (+0000) Subject: wiki: Only keep redirection to the new docs section X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9741abf5df2cbabc75468e6973a25f9bdbe3aa68;p=ipfire.org.git wiki: Only keep redirection to the new docs section Signed-off-by: Michael Tremer --- 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