]> git.ipfire.org Git - ipfire.org.git/commitdiff
Redirect to right host when no avatar image is available
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Oct 2018 00:04:58 +0000 (01:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Oct 2018 00:04:58 +0000 (01:04 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/people.py

index 110c4817336f8f2bec7b13d6d87b50b98f6e39a3..303559f72529641a9bd91f1edd090b755f1ad490 100644 (file)
@@ -43,7 +43,7 @@ class AvatarHandler(base.BaseHandler):
                if not avatar:
                        logging.debug("No avatar uploaded for %s" % account)
 
-                       return self.redirect("https://static.ipfire.org%s" % self.static_url("img/default-avatar.jpg"))
+                       return self.redirect(self.static_url("img/default-avatar.jpg"))
 
                # Set headers about content
                self.set_header("Content-Disposition", "inline; filename=\"%s.jpg\"" % account.uid)