Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3Boto3Storage().url("my_url.css") return path without ":" after url's protocol #1183

Open
1ronmat opened this issue Oct 4, 2022 · 1 comment

Comments

@1ronmat
Copy link

1ronmat commented Oct 4, 2022

S3Boto3Storage().url("css/fils.css") -> "https//cloudfront/static/css/file.css" instead of "https://cloudfront/static/css/file.css".

https://github.com/jschneier/django-storages/blob/master/storages/backends/s3boto3.py#L576

if self.custom_domain:
            url = '{}//{}/{}{}'.format(       #   <------- ':' is missing ?
                self.url_protocol,
                self.custom_domain,
                filepath_to_uri(name),
                '?{}'.format(urlencode(params)) if params else '',
            )

Is it normal ?

@merwok
Copy link

merwok commented Feb 2, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants