From 5dcb323368c7fc3da4646f2e76f96375e100be1a Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 20 Nov 2025 12:53:29 +0100 Subject: [PATCH] Update get_feature_url() to point to docs and not github --- backend/apps/ifc_validation_bff/views_legacy.py | 2 +- backend/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/ifc_validation_bff/views_legacy.py b/backend/apps/ifc_validation_bff/views_legacy.py index 4d075bb3..5869aa4d 100644 --- a/backend/apps/ifc_validation_bff/views_legacy.py +++ b/backend/apps/ifc_validation_bff/views_legacy.py @@ -125,7 +125,7 @@ def get_feature_url(feature_code): feature_files = get_feature_filename(feature_code) if feature_files: - return os.path.join(FEATURE_URL, feature_code[:3], os.path.basename(feature_files[0])) + return os.path.join(FEATURE_URL, os.path.basename(feature_files[0].replace(".feature", ".html"))) return None diff --git a/backend/core/settings.py b/backend/core/settings.py index 4fc98c8a..1abbb1de 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -40,7 +40,7 @@ # URL for rule hyperlinks; determine the branch based on the environment FEATURE_BRANCH = "development" if DEVELOPMENT else "main" FEATURE_URL = os.getenv( - "FEATURE_URL", f"https://github.com/buildingSMART/ifc-gherkin-rules/blob/{FEATURE_BRANCH}/features/rules" + "FEATURE_URL", f"https://buildingsmart.github.io/ifc-gherkin-rules/branches/{FEATURE_BRANCH}/features/" ) # Max. number of outcomes shown in UI