From edf453244ddbd0cc10590e379c68402ced3544dd Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 17 Jul 2025 09:38:15 +0200 Subject: [PATCH] SoftwareApplication in LD is not compatible yet --- hub/services/templatetags/json_ld_tags.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/hub/services/templatetags/json_ld_tags.py b/hub/services/templatetags/json_ld_tags.py index 2f1e56d..47ea3be 100644 --- a/hub/services/templatetags/json_ld_tags.py +++ b/hub/services/templatetags/json_ld_tags.py @@ -242,7 +242,9 @@ def json_ld_structured_data(context): # Add image if available if hasattr(offering.service, "get_logo") and offering.service.get_logo: - data["image"] = request.build_absolute_uri(offering.service.get_logo.url) + data["image"] = request.build_absolute_uri( + offering.service.get_logo.url + ) # Create individual offers for each plan with pricing offers = [] @@ -351,12 +353,7 @@ def json_ld_structured_data(context): } # Add about field based on related entities - if article.related_service: - data["about"] = { - "@type": "SoftwareApplication", - "name": article.related_service.name, - } - elif article.related_consulting_partner: + if article.related_consulting_partner: data["about"] = { "@type": "Organization", "name": article.related_consulting_partner.name,