From cd5f4e510f14ce0a8363112a49c1a26a0c86d779 Mon Sep 17 00:00:00 2001 From: Catalin Date: Mon, 23 Dec 2024 15:45:29 +0200 Subject: [PATCH 1/2] replace Centre domain for FAQ answers --- .../ckanext/hdx_theme/helpers/faq_wordpress.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/helpers/faq_wordpress.py b/ckanext-hdx_theme/ckanext/hdx_theme/helpers/faq_wordpress.py index 6717ec22e9..34bc1e7f28 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/helpers/faq_wordpress.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/helpers/faq_wordpress.py @@ -54,8 +54,14 @@ def replace_iframe_src(content): content = re.sub(p, "\g<1>load-\g<2>\g<3>", content) return content + +def replace_centre_domain(content: str): + return content.replace('https://centre.innovation.humdata.org', config.get('hdx.wordpress.url')) + + def process_content(content): content = replace_iframe_src(content) + content = replace_centre_domain(content) return content # this is not used? From a2738f40cb8dfb6385c40fcffecc61cf4db0e6c3 Mon Sep 17 00:00:00 2001 From: Dan Mihaila Date: Mon, 23 Dec 2024 15:50:29 +0200 Subject: [PATCH 2/2] Update version.py --- ckanext-hdx_theme/ckanext/hdx_theme/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/version.py b/ckanext-hdx_theme/ckanext/hdx_theme/version.py index 18944c1267..32f010c9cf 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/version.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/version.py @@ -1 +1 @@ -hdx_version = 'v1.86.1' +hdx_version = 'v1.86.2'