]> git.ipfire.org Git - ipfire.org.git/commitdiff
location: Fix redirection
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Mar 2024 13:12:10 +0000 (13:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Mar 2024 13:12:10 +0000 (13:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/__init__.py

index b4249fac644822fa2e6482f5218b6afdde86f2d8..a12ba70a125ceaf074eaf93043c3c6da2359a2bc 100644 (file)
@@ -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