Image.url returns twice https

I just implemented s3 bucket and all the static assets work fine but when I try to get a file I get the following link https://https//mybucket.s3.eu-central-1.amazonaws.com/static/media/thumbnails/Northern_Lights-1.jpeg

What is the problem?

settings.py

AWS_ACCESS_KEY_ID = AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY = AWS_SECRET_ACCESS_KEY
AWS_STORAGE_BUCKET_NAME = AWS_STORAGE_BUCKET_NAME

AWS_S3_FILE_OVERWRITE = False
AWS_S3_CUSTOM_DOMAIN = 'https://mybucket.s3.eu-central-1.amazonaws.com'
AWS_S3_OBJECT_PARAMETERS = {'CacheControl': 'max-age=86400'}
AWS_DEFAULT_ACL = None

AWS_LOCATION = 'static'

STATIC_URL = 'https://mybucket.s3.eu-central-1.amazonaws.com/static/'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images')
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
Back to Top