diff --git a/seahub/avatar/util.py b/seahub/avatar/util.py index 287e0ff32d..aee77f44b9 100644 --- a/seahub/avatar/util.py +++ b/seahub/avatar/util.py @@ -124,7 +124,7 @@ def get_avatar_file_storage(): else: dbs_options = { 'table': 'avatar_uploaded', - 'base_url': '/image-view/', + 'base_url': '%simage-view/' % settings.SITE_ROOT, 'name_column': 'filename', 'data_column': 'data', 'size_column': 'size',