diff --git a/core/common/views.py b/core/common/views.py index 7924a5861..38817520c 100644 --- a/core/common/views.py +++ b/core/common/views.py @@ -144,7 +144,10 @@ def destroy(self, request, *args, **kwargs): # pylint: disable=unused-argument return response.Response(status=status.HTTP_204_NO_CONTENT) def get_host_url(self): - return self.request.META['wsgi.url_scheme'] + '://' + self.request.get_host() + scheme = self.request.META['wsgi.url_scheme'] + if settings.ENV != 'development': + scheme += 's' + return scheme + '://' + self.request.get_host() def filter_queryset(self, queryset=None): if self.is_searchable and self.should_perform_es_search():