Use a format string
@@ -87,7 +87,7 @@ def map_host_to_project_slug(request): # pylint: disable=too-many-return-statem
if domain.https and not request.is_secure():
# Redirect HTTP -> HTTPS (302) for this custom domain
log.debug('Proxito CNAME HTTPS Redirect: host=%s', host)
- return redirect('https://%s%s' % (host, request.get_full_path()))
+ return redirect('https://{}{}'.format(host, request.get_full_path()))
return project_slug
