From: Michael Tremer Date: Mon, 4 Mar 2024 13:12:10 +0000 (+0000) Subject: location: Fix redirection X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9280d7d18dcf3d80c0881515eae416125d3279e3;p=ipfire.org.git location: Fix redirection Signed-off-by: Michael Tremer --- diff --git a/src/web/__init__.py b/src/web/__init__.py index b4249fac..a12ba70a 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -194,7 +194,7 @@ class Application(tornado.web.Application): (r"/password\-reset/([a-z_][a-z0-9_-]{0,31})/(\w+)", auth.PasswordResetHandler), (r"/.well-known/change-password", auth.WellKnownChangePasswordHandler), - # Projects + # Location (r"/location/?", location.IndexHandler), (r"/location/download", StaticHandler, { "template" : "location/download.html" }), (r"/location/how\-to\-use", StaticHandler, { "template" : "location/how-to-use.html" }), @@ -333,7 +333,7 @@ class Application(tornado.web.Application): # location.ipfire.org self.add_handlers(r"location\.([a-z]+\.dev\.)?ipfire\.org", [ - (r"(.*)", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/projects/location{0}" }), + (r"(.*)", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/location{0}" }), ]) # geoip.ipfire.org