Skip to content
Snippets Groups Projects
Commit 420e7e2f authored by anonymous's avatar anonymous
Browse files

backport of bugfix for master access

parent abb98b26
No related branches found
No related tags found
No related merge requests found
......@@ -211,3 +211,7 @@ def odsh_has_more_facets(facet, limit=None, exclude_active=False):
if limit is not None and len(facets) > limit:
return True
return False
def odsh_public_url():
return config.get('ckanext.odsh.public_url')
......@@ -288,7 +288,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
'presorted_license_options': odsh_helpers.presorted_license_options,
'odsh_tracking_id': odsh_helpers.odsh_tracking_id,
'odsh_tracking_url': odsh_helpers.odsh_tracking_url,
'odsh_has_more_facets': odsh_helpers.odsh_has_more_facets
'odsh_has_more_facets': odsh_helpers.odsh_has_more_facets,
'odsh_public_url': odsh_helpers.odsh_public_url
}
def after_map(self, map):
......
......@@ -28,5 +28,6 @@
</script>
<!-- End Matomo Code -->
{% endblock %}
{% block bodytag %} data-site-root="{{ h.odsh_public_url }}" data-locale-root="{{ h.odsh_public_url }}" {% endblock %}
{% block page %}
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment