diff --git a/readthedocs/projects/views/public.py b/readthedocs/projects/views/public.py index 14d763e1fab..fb8872111cb 100644 --- a/readthedocs/projects/views/public.py +++ b/readthedocs/projects/views/public.py @@ -90,7 +90,8 @@ def get_context_data(self, **kwargs): user=self.request.user, project=project) protocol = 'http' - if self.request.is_secure(): + use_https = getattr(settings, 'PUBLIC_DOMAIN_USES_HTTPS', False) + if use_https: protocol = 'https' version_slug = project.get_default_version()