Commit a5d4899d authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

fix: another SITE_URL instead of BASE_URL

parent f4b19c3d
Pipeline #6677 passed with stage
in 1 minute and 22 seconds
......@@ -74,7 +74,7 @@ class LDListMixin:
Model.get_permissions(parent_model, self.context['request'].user,
['view']))
if not self.id.startswith('http'):
self.id = '{}{}{}'.format(settings.SITE_URL, Model.resource(parent_model), self.id)
self.id = '{}{}{}'.format(settings.BASE_URL, Model.resource(parent_model), self.id)
return {'@id': self.id,
'@type': 'ldp:Container',
'ldp:contains': super().to_representation(filtered_values),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment