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? 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'