]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - webapp/handlers_base.py
Deliver static content from same domain if accessing admin.ipfire.org.
[people/shoehn/ipfire.org.git] / webapp / handlers_base.py
index 9ff886aae7509fa1cbcf9bc63f93bd9515421563..e44d203aa322ae7d6e522c671b9fdd2e67d8bbb3 100644 (file)
@@ -98,7 +98,10 @@ class BaseHandler(tornado.web.RequestHandler):
                if self.settings.get("debug", False):
                        return ret
 
-               if static:
+               elif self.request.host == "admin.ipfire.org":
+                       return ret
+
+               elif static:
                        return "http://static.ipfire.org%s" % ret
 
                return ret